X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e7bcded47c69499a2cca7be088c77f6e23b39e37..0c60a0e2b726073be874f45e5227ea93b63623f4:/regen diff --git a/regen b/regen index 0d894688cc..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,13 @@ if test "x$1" = "x"; then exit 1 fi -export CONFIG_FILES=$1 -export CONFIG_HEADERS= +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 exit $?