X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b12915c104de03c9fd5102404e35051e9b8609a8..eb6b14dc71402c42e0474779bfcd6e878383071e:/regen diff --git a/regen b/regen index e05991a9fd..42ba832e0e 100755 --- a/regen +++ b/regen @@ -3,7 +3,6 @@ # regenerates the file given as command line argument by running config.status # (the file is supposed to be generated by configure script) # -# Version: $Id$ # Author: VZ ################################################################################ @@ -12,7 +11,12 @@ if test "x$1" = "x"; then exit 1 fi -CONFIG_FILES=$1 +if [ ! -x ./config.status ]; then + echo "Must be run from the top level wxWidgets build directory" >&2 + exit 1 +fi + +CONFIG_FILES=$* CONFIG_HEADERS= export CONFIG_FILES CONFIG_HEADERS ./config.status