From: Stepan Kasal Date: Tue, 24 May 2005 07:20:42 +0000 (+0000) Subject: Make more use of "shift 2" in option processing. X-Git-Tag: AUTOCONF-2.59c~377 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd4c62733879fab4f8b1ded54e18f6e0bbffde33;p=thirdparty%2Fautoconf.git Make more use of "shift 2" in option processing. --- diff --git a/ChangeLog b/ChangeLog index 076e12435..e657c6ca3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-05-24 Stepan Kasal + + * bin/autoconf.as: Make more use of "shift 2" in option processing. + 2005-05-24 Stepan Kasal * bin/Makefile.am: Merge the two rules for creating scripts. diff --git a/bin/autoconf.as b/bin/autoconf.as index 4d3f0621e..6c41e26d4 100644 --- a/bin/autoconf.as +++ b/bin/autoconf.as @@ -120,9 +120,8 @@ while test $# -gt 0 ; do shift ;; --trace | -t ) test $# = 1 && eval "$exit_missing_arg" - shift - traces="$traces --trace='"`echo "$1" | sed "s/'/'\\\\\\\\''/g"`"'" - shift ;; + traces="$traces --trace='"`echo "$2" | sed "s/'/'\\\\\\\\''/g"`"'" + shift 2 ;; --initialization | -i ) autom4te_options="$autom4te_options --melt" shift;; @@ -132,9 +131,8 @@ while test $# -gt 0 ; do shift ;; --output | -o ) test $# = 1 && eval "$exit_missing_arg" - shift - outfile=$1 - shift ;; + outfile=$2 + shift 2 ;; -- ) # Stop option processing shift; break ;;