Reported by Franc,ois Pinard and Rainer Orth.
* autoreconf.sh: Removed spurious `;;'.
Formatting changes.
* tests/tools.m4 (Syntax of the scripts): Run `sh -n' on all the
shell scripts.
+2000-02-15 Akim Demaille <akim@epita.fr>
+
+ autoreconf had a silly syntax error, test it and fix it.
+ Reported by Franc,ois Pinard and Rainer Orth.
+
+ * autoreconf.sh: Removed spurious `;;'.
+ Formatting changes.
+ * tests/tools.m4 (Syntax of the scripts): Run `sh -n' on all the
+ shell scripts.
+
2000-02-15 Akim Demaille <akim@epita.fr>
* autoconf.sh (options handling): --v* of --version was shadowing
Paul Eggert eggert@twinsun.com
Pavel Roskin pavel_roskin@geocities.com
Philipp Thomas kthomas@gwdg.de
+Rainer Orth ro@TechFak.Uni-Bielefeld.DE
Richard Stallman rms@gnu.org
Roland McGrath roland@gnu.org
Scott Bambrough scottb@corelcomputer.com
usage="\
Usage: autoreconf [OPTION] ... [TEMPLATE-FILE]
-Run \`autoconf' (and \`autoheader' and \`automake', where appropriate)
-repeatedly to remake the Autoconf \`configure' scripts and
-configuration header templates in the directory tree rooted at the
+Run \`autoconf' (and \`autoheader', \`aclocal' and \`automake', where
+appropriate) repeatedly to remake the Autoconf \`configure' scripts
+and configuration header templates in the directory tree rooted at the
current directory. By default, it only remakes those files that are
older than their predecessors. If you install a new version of
Autoconf, running \`autoreconf' remakes all of the files by giving it
case "$1" in
--help | --h* | -h )
echo "$usage"; exit 0 ;;
+ --version | --vers*)
+ echo "$version"; exit 0 ;;
+
--localdir=* | --l*=* )
localdir=`echo "$1" | sed -e 's/^[^=]*=//'`
shift ;;
test $# -eq 0 && { echo "$help" >&2; exit 1; }
localdir="${1}"
shift ;;
+
--macrodir=* | --m*=* )
AC_MACRODIR=`echo "$1" | sed -e 's/^[^=]*=//'`
shift ;;
test $# -eq 0 && { echo "help" >&2; exit 1; }
AC_MACRODIR="$1"
shift ;;
+
-v | --verbose | --verb*)
verbose=echo; shift ;;
-f | --force)
force=yes; shift ;;
- --version | --vers*)
- echo "$version"; exit 0 ;;
--cygnus | --foreign | --gnits | --gnu)
automake_mode=$1; shift ;;
--include-deps | -i)
automake_deps=$1; shift ;;
+
--) # Stop option processing.
shift; break ;;
-*)
if test $# -ne 0; then
exec >&2
- echo "$me: invalid number of arguments."
+ echo "$me: invalid number of arguments"
echo "$help"
- exit 1 ;;
+ exit 1
fi
# The paths to the autoconf and autoheader scripts, at the top of the tree.
-top_autoconf=`echo $0|sed s%autoreconf%autoconf%`
-top_autoheader=`echo $0|sed s%autoreconf%autoheader%`
+top_autoconf=`echo "$0" |sed s%autoreconf%autoconf%`
+top_autoheader=`echo "$0" |sed s%autoreconf%autoheader%`
# Make a list of directories to process.
# The xargs grep filters out Cygnus configure.in files.
done
# Local Variables:
-# mode:shell-script
-# sh-indentation:3
+# mode: shell-script
+# sh-indentation: 2
# End:
usage="\
Usage: autoreconf [OPTION] ... [TEMPLATE-FILE]
-Run \`autoconf' (and \`autoheader' and \`automake', where appropriate)
-repeatedly to remake the Autoconf \`configure' scripts and
-configuration header templates in the directory tree rooted at the
+Run \`autoconf' (and \`autoheader', \`aclocal' and \`automake', where
+appropriate) repeatedly to remake the Autoconf \`configure' scripts
+and configuration header templates in the directory tree rooted at the
current directory. By default, it only remakes those files that are
older than their predecessors. If you install a new version of
Autoconf, running \`autoreconf' remakes all of the files by giving it
case "$1" in
--help | --h* | -h )
echo "$usage"; exit 0 ;;
+ --version | --vers*)
+ echo "$version"; exit 0 ;;
+
--localdir=* | --l*=* )
localdir=`echo "$1" | sed -e 's/^[^=]*=//'`
shift ;;
test $# -eq 0 && { echo "$help" >&2; exit 1; }
localdir="${1}"
shift ;;
+
--macrodir=* | --m*=* )
AC_MACRODIR=`echo "$1" | sed -e 's/^[^=]*=//'`
shift ;;
test $# -eq 0 && { echo "help" >&2; exit 1; }
AC_MACRODIR="$1"
shift ;;
+
-v | --verbose | --verb*)
verbose=echo; shift ;;
-f | --force)
force=yes; shift ;;
- --version | --vers*)
- echo "$version"; exit 0 ;;
--cygnus | --foreign | --gnits | --gnu)
automake_mode=$1; shift ;;
--include-deps | -i)
automake_deps=$1; shift ;;
+
--) # Stop option processing.
shift; break ;;
-*)
if test $# -ne 0; then
exec >&2
- echo "$me: invalid number of arguments."
+ echo "$me: invalid number of arguments"
echo "$help"
- exit 1 ;;
+ exit 1
fi
# The paths to the autoconf and autoheader scripts, at the top of the tree.
-top_autoconf=`echo $0|sed s%autoreconf%autoconf%`
-top_autoheader=`echo $0|sed s%autoreconf%autoheader%`
+top_autoconf=`echo "$0" |sed s%autoreconf%autoconf%`
+top_autoheader=`echo "$0" |sed s%autoreconf%autoheader%`
# Make a list of directories to process.
# The xargs grep filters out Cygnus configure.in files.
done
# Local Variables:
-# mode:shell-script
-# sh-indentation:3
+# mode: shell-script
+# sh-indentation: 2
# End:
usage="\
Usage: autoreconf [OPTION] ... [TEMPLATE-FILE]
-Run \`autoconf' (and \`autoheader' and \`automake', where appropriate)
-repeatedly to remake the Autoconf \`configure' scripts and
-configuration header templates in the directory tree rooted at the
+Run \`autoconf' (and \`autoheader', \`aclocal' and \`automake', where
+appropriate) repeatedly to remake the Autoconf \`configure' scripts
+and configuration header templates in the directory tree rooted at the
current directory. By default, it only remakes those files that are
older than their predecessors. If you install a new version of
Autoconf, running \`autoreconf' remakes all of the files by giving it
case "$1" in
--help | --h* | -h )
echo "$usage"; exit 0 ;;
+ --version | --vers*)
+ echo "$version"; exit 0 ;;
+
--localdir=* | --l*=* )
localdir=`echo "$1" | sed -e 's/^[^=]*=//'`
shift ;;
test $# -eq 0 && { echo "$help" >&2; exit 1; }
localdir="${1}"
shift ;;
+
--macrodir=* | --m*=* )
AC_MACRODIR=`echo "$1" | sed -e 's/^[^=]*=//'`
shift ;;
test $# -eq 0 && { echo "help" >&2; exit 1; }
AC_MACRODIR="$1"
shift ;;
+
-v | --verbose | --verb*)
verbose=echo; shift ;;
-f | --force)
force=yes; shift ;;
- --version | --vers*)
- echo "$version"; exit 0 ;;
--cygnus | --foreign | --gnits | --gnu)
automake_mode=$1; shift ;;
--include-deps | -i)
automake_deps=$1; shift ;;
+
--) # Stop option processing.
shift; break ;;
-*)
if test $# -ne 0; then
exec >&2
- echo "$me: invalid number of arguments."
+ echo "$me: invalid number of arguments"
echo "$help"
- exit 1 ;;
+ exit 1
fi
# The paths to the autoconf and autoheader scripts, at the top of the tree.
-top_autoconf=`echo $0|sed s%autoreconf%autoconf%`
-top_autoheader=`echo $0|sed s%autoreconf%autoheader%`
+top_autoconf=`echo "$0" |sed s%autoreconf%autoconf%`
+top_autoheader=`echo "$0" |sed s%autoreconf%autoheader%`
# Make a list of directories to process.
# The xargs grep filters out Cygnus configure.in files.
done
# Local Variables:
-# mode:shell-script
-# sh-indentation:3
+# mode: shell-script
+# sh-indentation: 2
# End:
.B autoreconf
[\fIOPTION\fR] ... [\fITEMPLATE-FILE\fR]
.SH DESCRIPTION
-Run `autoconf' (and `autoheader' and `automake', where appropriate)
-repeatedly to remake the Autoconf `configure' scripts and
-configuration header templates in the directory tree rooted at the
+Run `autoconf' (and `autoheader', `aclocal' and `automake', where
+appropriate) repeatedly to remake the Autoconf `configure' scripts
+and configuration header templates in the directory tree rooted at the
current directory. By default, it only remakes those files that are
older than their predecessors. If you install a new version of
Autoconf, running `autoreconf' remakes all of the files by giving it
EOF
-dnl actest.m4 AU_ defines OSBOLETE to UPDATED.
+## -------------------------------------------------------- ##
+## Check that the shell scripts are syntactically correct. ##
+## -------------------------------------------------------- ##
-dnl AH_DEFUN
-dnl --------
-dnl
-dnl We check that both the AH_DEFUN given in auxiliary files and in
-dnl `configure.in' function properly.
+AT_SETUP(Syntax of the scripts)
+
+AT_DATA(true,
+[[#! /bin/sh
+exit 0
+]])
+
+chmod +x true
+
+if (/bin/sh -n ./true) >/dev/null 2>&1; then
+ AT_CHECK([/bin/sh -n ../autoconf], 0)
+ AT_CHECK([/bin/sh -n ../autoreconf], 0)
+ AT_CHECK([/bin/sh -n ../autoupdate], 0)
+ AT_CHECK([/bin/sh -n ../autoreconf], 0)
+ AT_CHECK([/bin/sh -n ../ifnames], 0)
+fi
+
+AT_CLEANUP
+
+
+
+
+
+## ---------- ##
+## AH_DEFUN. ##
+## ---------- ##
+
+# We check that both the AH_DEFUN given in auxiliary files and in
+# `configure.in' function properly.
AT_SETUP(AH_DEFUN)
AT_DATA(configure.in,
-dnl autoupdate
-dnl ----------
-dnl
-dnl Check that AC_LINK_FILES and AC_OUTPUT are properly updated.
+
+## ------------ ##
+## autoupdate. ##
+## ------------ ##
+
+# Check that AC_LINK_FILES and AC_OUTPUT are properly updated.
+# actest.m4 AU_ defines OSBOLETE to UPDATED.
+
AT_SETUP(autoupdate)
AT_DATA(configure.in,