* 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.
This commit is contained in:
Akim Demaille 2000-02-08 13:45:24 +00:00
parent 30387328fa
commit ed706fc1bf
10 changed files with 52 additions and 45 deletions

View File

@ -1,3 +1,10 @@
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

View File

@ -113,7 +113,7 @@ while test $# -gt 0 ; do
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*=* )
@ -121,7 +121,7 @@ while test $# -gt 0 ; do
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 )
@ -151,10 +151,10 @@ while test $# -gt 0 ; do
- ) # 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
@ -171,7 +171,7 @@ case $# in
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 ;;

View File

@ -113,7 +113,7 @@ while test $# -gt 0 ; do
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*=* )
@ -121,7 +121,7 @@ while test $# -gt 0 ; do
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 )
@ -151,10 +151,10 @@ while test $# -gt 0 ; do
- ) # 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
@ -171,7 +171,7 @@ case $# in
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 ;;

View File

@ -97,7 +97,7 @@ while test $# -gt 0 ; do
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*=* )
@ -105,7 +105,7 @@ while test $# -gt 0 ; do
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
@ -113,7 +113,7 @@ while test $# -gt 0 ; do
- ) # Use stdin as input.
break ;;
-* )
exec 1>&2
exec >&2
echo "$me: invalid option $1"
echo "$help"
exit 1 ;;
@ -128,7 +128,7 @@ test -r $localdir/acconfig.h && acconfigs="$acconfigs $localdir/acconfig.h"
case $# in
0) infile=configure.in ;;
1) infile=$1 ;;
*) exec 1>&2
*) exec >&2
echo "$me: invalid number of arguments."
echo "$help"
exit 1 ;;

View File

@ -97,7 +97,7 @@ while test $# -gt 0 ; do
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*=* )
@ -105,7 +105,7 @@ while test $# -gt 0 ; do
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
@ -113,7 +113,7 @@ while test $# -gt 0 ; do
- ) # Use stdin as input.
break ;;
-* )
exec 1>&2
exec >&2
echo "$me: invalid option $1"
echo "$help"
exit 1 ;;
@ -128,7 +128,7 @@ test -r $localdir/acconfig.h && acconfigs="$acconfigs $localdir/acconfig.h"
case $# in
0) infile=configure.in ;;
1) infile=$1 ;;
*) exec 1>&2
*) exec >&2
echo "$me: invalid number of arguments."
echo "$help"
exit 1 ;;

View File

@ -74,7 +74,7 @@ while test $# -gt 0; do
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*=* )
@ -82,7 +82,7 @@ while test $# -gt 0; do
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*)
@ -98,7 +98,7 @@ while test $# -gt 0; do
--) # Stop option processing.
shift; break ;;
-*)
exec 1>&2
exec >&2
echo "$me: invalid option $1"
echo "$help"
exit 1 ;;
@ -107,7 +107,7 @@ while test $# -gt 0; do
done
if test $# -ne 0; then
exec 1>&2
exec >&2
echo "$me: invalid number of arguments."
echo "$help"
exit 1 ;;

View File

@ -74,7 +74,7 @@ while test $# -gt 0; do
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*=* )
@ -82,7 +82,7 @@ while test $# -gt 0; do
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*)
@ -98,7 +98,7 @@ while test $# -gt 0; do
--) # Stop option processing.
shift; break ;;
-*)
exec 1>&2
exec >&2
echo "$me: invalid option $1"
echo "$help"
exit 1 ;;
@ -107,7 +107,7 @@ while test $# -gt 0; do
done
if test $# -ne 0; then
exec 1>&2
exec >&2
echo "$me: invalid number of arguments."
echo "$help"
exit 1 ;;

View File

@ -113,7 +113,7 @@ while test $# -gt 0 ; do
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*=* )
@ -121,7 +121,7 @@ while test $# -gt 0 ; do
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 )
@ -151,10 +151,10 @@ while test $# -gt 0 ; do
- ) # 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
@ -171,7 +171,7 @@ case $# in
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 ;;

View File

@ -97,7 +97,7 @@ while test $# -gt 0 ; do
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*=* )
@ -105,7 +105,7 @@ while test $# -gt 0 ; do
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
@ -113,7 +113,7 @@ while test $# -gt 0 ; do
- ) # Use stdin as input.
break ;;
-* )
exec 1>&2
exec >&2
echo "$me: invalid option $1"
echo "$help"
exit 1 ;;
@ -128,7 +128,7 @@ test -r $localdir/acconfig.h && acconfigs="$acconfigs $localdir/acconfig.h"
case $# in
0) infile=configure.in ;;
1) infile=$1 ;;
*) exec 1>&2
*) exec >&2
echo "$me: invalid number of arguments."
echo "$help"
exit 1 ;;

View File

@ -74,7 +74,7 @@ while test $# -gt 0; do
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*=* )
@ -82,7 +82,7 @@ while test $# -gt 0; do
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*)
@ -98,7 +98,7 @@ while test $# -gt 0; do
--) # Stop option processing.
shift; break ;;
-*)
exec 1>&2
exec >&2
echo "$me: invalid option $1"
echo "$help"
exit 1 ;;
@ -107,7 +107,7 @@ while test $# -gt 0; do
done
if test $# -ne 0; then
exec 1>&2
exec >&2
echo "$me: invalid number of arguments."
echo "$help"
exit 1 ;;