(tmp): s/ac/ar/.
<options handling>: Support --debug.
* doc/autoconf.texi: Adjust.
+2000-07-10 Akim Demaille <akim@epita.fr>
+
+ * autoreconf.sh (debug): New variable.
+ (tmp): s/ac/ar/.
+ <options handling>: Support --debug.
+ * doc/autoconf.texi: Adjust.
+
2000-07-10 Akim Demaille <akim@epita.fr>
Fix the bugs recently introduced in autoreconf.
-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
# Variables.
: ${AC_MACRODIR=@datadir@}
+debug=false
dir=`echo "$0" | sed -e 's/[^/]*$//'`
force=false
localdir=.
--verbose | --verb* | -v )
verbose=echo
shift;;
+ --debug | --d* | -d )
+ debug=:; shift ;;
--localdir=* | --l*=* )
localdir=`echo "$1" | sed -e 's/^[^=]*=//'`
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
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
-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
# Variables.
: ${AC_MACRODIR=@datadir@}
+debug=false
dir=`echo "$0" | sed -e 's/[^/]*$//'`
force=false
localdir=.
--verbose | --verb* | -v )
verbose=echo
shift;;
+ --debug | --d* | -d )
+ debug=:; shift ;;
--localdir=* | --l*=* )
localdir=`echo "$1" | sed -e 's/^[^=]*=//'`
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
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
-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
# Variables.
: ${AC_MACRODIR=@datadir@}
+debug=false
dir=`echo "$0" | sed -e 's/[^/]*$//'`
force=false
localdir=.
--verbose | --verb* | -v )
verbose=echo
shift;;
+ --debug | --d* | -d )
+ debug=:; shift ;;
--localdir=* | --l*=* )
localdir=`echo "$1" | sed -e 's/^[^=]*=//'`
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
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
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