From: Akim Demaille Date: Mon, 10 Jul 2000 10:08:29 +0000 (+0000) Subject: * autoreconf.sh (debug): New variable. X-Git-Tag: autoconf-2.50~753 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00ac4eb3f1bb9c0680dce42abf13fe7bd0742d16;p=thirdparty%2Fautoconf.git * autoreconf.sh (debug): New variable. (tmp): s/ac/ar/. : Support --debug. * doc/autoconf.texi: Adjust. --- diff --git a/ChangeLog b/ChangeLog index 412cc6c0e..b3c17bdca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-07-10 Akim Demaille + + * autoreconf.sh (debug): New variable. + (tmp): s/ac/ar/. + : Support --debug. + * doc/autoconf.texi: Adjust. + 2000-07-10 Akim Demaille Fix the bugs recently introduced in autoreconf. diff --git a/autoreconf.in b/autoreconf.in index e347f4cd1..fc09eb387 100644 --- a/autoreconf.in +++ b/autoreconf.in @@ -33,6 +33,7 @@ the \`--force' option. -h, --help print this help, then exit -V, --version print version number, then exit -v, --verbose verbosely report processing + -d, --debug don't remove temporary files -m, --macrodir=DIR directory storing macro files -l, --localdir=DIR directory storing \`aclocal.m4' and \`acconfig.h' -f, --force consider every files are obsolete @@ -78,6 +79,7 @@ if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi # Variables. : ${AC_MACRODIR=@datadir@} +debug=false dir=`echo "$0" | sed -e 's/[^/]*$//'` force=false localdir=. @@ -116,6 +118,8 @@ while test $# -gt 0; do --verbose | --verb* | -v ) verbose=echo shift;; + --debug | --d* | -d ) + debug=:; shift ;; --localdir=* | --l*=* ) localdir=`echo "$1" | sed -e 's/^[^=]*=//'` @@ -184,7 +188,7 @@ $debug || test -n "$tmp" && test -d "$tmp" } || { - tmp=$TMPDIR/ac$$ && (umask 077 && mkdir $tmp) + tmp=$TMPDIR/ar$$ && (umask 077 && mkdir $tmp) } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 @@ -231,7 +235,7 @@ while read dir; do case "$dir" in .) dots= ;; *) # A "../" for each directory in /$dir. - dots=`echo /$dir|sed 's%/[^/]*%../%g'` ;; + dots=`echo /$dir | sed 's%/[^/]*%../%g'` ;; esac case "$localdir" in diff --git a/autoreconf.sh b/autoreconf.sh index e347f4cd1..fc09eb387 100644 --- a/autoreconf.sh +++ b/autoreconf.sh @@ -33,6 +33,7 @@ the \`--force' option. -h, --help print this help, then exit -V, --version print version number, then exit -v, --verbose verbosely report processing + -d, --debug don't remove temporary files -m, --macrodir=DIR directory storing macro files -l, --localdir=DIR directory storing \`aclocal.m4' and \`acconfig.h' -f, --force consider every files are obsolete @@ -78,6 +79,7 @@ if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi # Variables. : ${AC_MACRODIR=@datadir@} +debug=false dir=`echo "$0" | sed -e 's/[^/]*$//'` force=false localdir=. @@ -116,6 +118,8 @@ while test $# -gt 0; do --verbose | --verb* | -v ) verbose=echo shift;; + --debug | --d* | -d ) + debug=:; shift ;; --localdir=* | --l*=* ) localdir=`echo "$1" | sed -e 's/^[^=]*=//'` @@ -184,7 +188,7 @@ $debug || test -n "$tmp" && test -d "$tmp" } || { - tmp=$TMPDIR/ac$$ && (umask 077 && mkdir $tmp) + tmp=$TMPDIR/ar$$ && (umask 077 && mkdir $tmp) } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 @@ -231,7 +235,7 @@ while read dir; do case "$dir" in .) dots= ;; *) # A "../" for each directory in /$dir. - dots=`echo /$dir|sed 's%/[^/]*%../%g'` ;; + dots=`echo /$dir | sed 's%/[^/]*%../%g'` ;; esac case "$localdir" in diff --git a/bin/autoreconf.in b/bin/autoreconf.in index e347f4cd1..fc09eb387 100644 --- a/bin/autoreconf.in +++ b/bin/autoreconf.in @@ -33,6 +33,7 @@ the \`--force' option. -h, --help print this help, then exit -V, --version print version number, then exit -v, --verbose verbosely report processing + -d, --debug don't remove temporary files -m, --macrodir=DIR directory storing macro files -l, --localdir=DIR directory storing \`aclocal.m4' and \`acconfig.h' -f, --force consider every files are obsolete @@ -78,6 +79,7 @@ if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi # Variables. : ${AC_MACRODIR=@datadir@} +debug=false dir=`echo "$0" | sed -e 's/[^/]*$//'` force=false localdir=. @@ -116,6 +118,8 @@ while test $# -gt 0; do --verbose | --verb* | -v ) verbose=echo shift;; + --debug | --d* | -d ) + debug=:; shift ;; --localdir=* | --l*=* ) localdir=`echo "$1" | sed -e 's/^[^=]*=//'` @@ -184,7 +188,7 @@ $debug || test -n "$tmp" && test -d "$tmp" } || { - tmp=$TMPDIR/ac$$ && (umask 077 && mkdir $tmp) + tmp=$TMPDIR/ar$$ && (umask 077 && mkdir $tmp) } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 @@ -231,7 +235,7 @@ while read dir; do case "$dir" in .) dots= ;; *) # A "../" for each directory in /$dir. - dots=`echo /$dir|sed 's%/[^/]*%../%g'` ;; + dots=`echo /$dir | sed 's%/[^/]*%../%g'` ;; esac case "$localdir" in diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 764f948d9..a7a6108c1 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -1098,6 +1098,10 @@ Print the version number of Autoconf and exit. Print the name of each directory where @code{autoreconf} runs @code{autoconf} (and @code{autoheader}, if appropriate). +@item --debug +@itemx -d +Don't remove the temporary files. + @item --force @itemx -f Remake even @file{configure} scripts and configuration headers that are