* autoconf.sh: Reformating, and use >&2 instead of 1>&2.
* autoreconf.sh: Likewise.
* autoheader.sh: Likewise.
+2000-02-08 Akim Demaille <akim@epita.fr>
+
+ * autoupdate.sh: Don't dump --help on --wrong-option.
+ * autoconf.sh: Reformating, and use >&2 instead of 1>&2.
+ * autoreconf.sh: Likewise.
+ * autoheader.sh: Likewise.
+
2000-02-08 Akim Demaille <akim@epita.fr>
* libm4.m4 (m4_namespace_push, m4_namespace_pop): Use the private
shift ;;
--localdir | --l* | -l )
shift
- test $# -eq 0 && { echo "$help" 1>&2; exit 1; }
+ test $# -eq 0 && { echo "$help" >&2; exit 1; }
localdir="$1"
shift ;;
--macrodir=* | --m*=* )
shift ;;
--macrodir | --m* | -m )
shift
- test $# -eq 0 && { echo "$help" 1>&2; exit 1; }
+ test $# -eq 0 && { echo "$help" >&2; exit 1; }
AC_MACRODIR="$1"
shift ;;
--install )
- ) # Use stdin as input.
break ;;
-* )
- exec 1>&2
- echo "$me: invalid option $1"
- echo "$help"
- exit 1 ;;
+ exec >&2
+ echo "$me: invalid option $1"
+ echo "$help"
+ exit 1 ;;
* )
break ;;
esac
0) infile=configure.in
test $task = script && test "x$outfile" = x && outfile=configure;;
1) infile="$1" ;;
- *) exec 1>&2
+ *) exec >&2
echo "$me: invalid number of arguments."
echo "$help"
exit 1 ;;
shift ;;
--localdir | --l* | -l )
shift
- test $# -eq 0 && { echo "$help" 1>&2; exit 1; }
+ test $# -eq 0 && { echo "$help" >&2; exit 1; }
localdir="$1"
shift ;;
--macrodir=* | --m*=* )
shift ;;
--macrodir | --m* | -m )
shift
- test $# -eq 0 && { echo "$help" 1>&2; exit 1; }
+ test $# -eq 0 && { echo "$help" >&2; exit 1; }
AC_MACRODIR="$1"
shift ;;
--install )
- ) # Use stdin as input.
break ;;
-* )
- exec 1>&2
- echo "$me: invalid option $1"
- echo "$help"
- exit 1 ;;
+ exec >&2
+ echo "$me: invalid option $1"
+ echo "$help"
+ exit 1 ;;
* )
break ;;
esac
0) infile=configure.in
test $task = script && test "x$outfile" = x && outfile=configure;;
1) infile="$1" ;;
- *) exec 1>&2
+ *) exec >&2
echo "$me: invalid number of arguments."
echo "$help"
exit 1 ;;
shift ;;
-l | --localdir | --l*)
shift
- test $# -eq 0 && { echo "$help" 1>&2; exit 1; }
+ test $# -eq 0 && { echo "$help" >&2; exit 1; }
localdir=$1
shift ;;
--macrodir=* | --m*=* )
shift ;;
-m | --macrodir | --m* )
shift
- test $# -eq 0 && { echo "$help" 1>&2; exit 1; }
+ test $# -eq 0 && { echo "$help" >&2; exit 1; }
AC_MACRODIR=$1
shift ;;
-- ) # Stop option processing
- ) # Use stdin as input.
break ;;
-* )
- exec 1>&2
+ exec >&2
echo "$me: invalid option $1"
echo "$help"
exit 1 ;;
case $# in
0) infile=configure.in ;;
1) infile=$1 ;;
- *) exec 1>&2
+ *) exec >&2
echo "$me: invalid number of arguments."
echo "$help"
exit 1 ;;
shift ;;
-l | --localdir | --l*)
shift
- test $# -eq 0 && { echo "$help" 1>&2; exit 1; }
+ test $# -eq 0 && { echo "$help" >&2; exit 1; }
localdir=$1
shift ;;
--macrodir=* | --m*=* )
shift ;;
-m | --macrodir | --m* )
shift
- test $# -eq 0 && { echo "$help" 1>&2; exit 1; }
+ test $# -eq 0 && { echo "$help" >&2; exit 1; }
AC_MACRODIR=$1
shift ;;
-- ) # Stop option processing
- ) # Use stdin as input.
break ;;
-* )
- exec 1>&2
+ exec >&2
echo "$me: invalid option $1"
echo "$help"
exit 1 ;;
case $# in
0) infile=configure.in ;;
1) infile=$1 ;;
- *) exec 1>&2
+ *) exec >&2
echo "$me: invalid number of arguments."
echo "$help"
exit 1 ;;
shift ;;
--localdir | --l* | -l )
shift
- test $# -eq 0 && { echo "$help" 1>&2; exit 1; }
+ test $# -eq 0 && { echo "$help" >&2; exit 1; }
localdir="${1}"
shift ;;
--macrodir=* | --m*=* )
shift ;;
--macrodir | --m* | -m )
shift
- test $# -eq 0 && { echo "help" 1>&2; exit 1; }
+ test $# -eq 0 && { echo "help" >&2; exit 1; }
AC_MACRODIR="$1"
shift ;;
-v | --verbose | --verb*)
--) # Stop option processing.
shift; break ;;
-*)
- exec 1>&2
+ exec >&2
echo "$me: invalid option $1"
echo "$help"
exit 1 ;;
done
if test $# -ne 0; then
- exec 1>&2
+ exec >&2
echo "$me: invalid number of arguments."
echo "$help"
exit 1 ;;
shift ;;
--localdir | --l* | -l )
shift
- test $# -eq 0 && { echo "$help" 1>&2; exit 1; }
+ test $# -eq 0 && { echo "$help" >&2; exit 1; }
localdir="${1}"
shift ;;
--macrodir=* | --m*=* )
shift ;;
--macrodir | --m* | -m )
shift
- test $# -eq 0 && { echo "help" 1>&2; exit 1; }
+ test $# -eq 0 && { echo "help" >&2; exit 1; }
AC_MACRODIR="$1"
shift ;;
-v | --verbose | --verb*)
--) # Stop option processing.
shift; break ;;
-*)
- exec 1>&2
+ exec >&2
echo "$me: invalid option $1"
echo "$help"
exit 1 ;;
done
if test $# -ne 0; then
- exec 1>&2
+ exec >&2
echo "$me: invalid number of arguments."
echo "$help"
exit 1 ;;
shift ;;
--localdir | --l* | -l )
shift
- test $# -eq 0 && { echo "$help" 1>&2; exit 1; }
+ test $# -eq 0 && { echo "$help" >&2; exit 1; }
localdir="$1"
shift ;;
--macrodir=* | --m*=* )
shift ;;
--macrodir | --m* | -m )
shift
- test $# -eq 0 && { echo "$help" 1>&2; exit 1; }
+ test $# -eq 0 && { echo "$help" >&2; exit 1; }
AC_MACRODIR="$1"
shift ;;
--install )
- ) # Use stdin as input.
break ;;
-* )
- exec 1>&2
- echo "$me: invalid option $1"
- echo "$help"
- exit 1 ;;
+ exec >&2
+ echo "$me: invalid option $1"
+ echo "$help"
+ exit 1 ;;
* )
break ;;
esac
0) infile=configure.in
test $task = script && test "x$outfile" = x && outfile=configure;;
1) infile="$1" ;;
- *) exec 1>&2
+ *) exec >&2
echo "$me: invalid number of arguments."
echo "$help"
exit 1 ;;
shift ;;
-l | --localdir | --l*)
shift
- test $# -eq 0 && { echo "$help" 1>&2; exit 1; }
+ test $# -eq 0 && { echo "$help" >&2; exit 1; }
localdir=$1
shift ;;
--macrodir=* | --m*=* )
shift ;;
-m | --macrodir | --m* )
shift
- test $# -eq 0 && { echo "$help" 1>&2; exit 1; }
+ test $# -eq 0 && { echo "$help" >&2; exit 1; }
AC_MACRODIR=$1
shift ;;
-- ) # Stop option processing
- ) # Use stdin as input.
break ;;
-* )
- exec 1>&2
+ exec >&2
echo "$me: invalid option $1"
echo "$help"
exit 1 ;;
case $# in
0) infile=configure.in ;;
1) infile=$1 ;;
- *) exec 1>&2
+ *) exec >&2
echo "$me: invalid number of arguments."
echo "$help"
exit 1 ;;
shift ;;
--localdir | --l* | -l )
shift
- test $# -eq 0 && { echo "$help" 1>&2; exit 1; }
+ test $# -eq 0 && { echo "$help" >&2; exit 1; }
localdir="${1}"
shift ;;
--macrodir=* | --m*=* )
shift ;;
--macrodir | --m* | -m )
shift
- test $# -eq 0 && { echo "help" 1>&2; exit 1; }
+ test $# -eq 0 && { echo "help" >&2; exit 1; }
AC_MACRODIR="$1"
shift ;;
-v | --verbose | --verb*)
--) # Stop option processing.
shift; break ;;
-*)
- exec 1>&2
+ exec >&2
echo "$me: invalid option $1"
echo "$help"
exit 1 ;;
done
if test $# -ne 0; then
- exec 1>&2
+ exec >&2
echo "$me: invalid number of arguments."
echo "$help"
exit 1 ;;