]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Make more use of "shift 2" in option processing.
authorStepan Kasal <kasal@ucw.cz>
Tue, 24 May 2005 07:20:42 +0000 (07:20 +0000)
committerStepan Kasal <kasal@ucw.cz>
Tue, 24 May 2005 07:20:42 +0000 (07:20 +0000)
ChangeLog
bin/autoconf.as

index 076e124356278032f17622a4e07644c53edcfaf1..e657c6ca34bdf4d41de59ce18c313241e746283f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-05-24  Stepan Kasal  <kasal@ucw.cz>
+
+       * bin/autoconf.as: Make more use of "shift 2" in option processing.
+
 2005-05-24  Stepan Kasal  <kasal@ucw.cz>
 
        * bin/Makefile.am: Merge the two rules for creating scripts.
index 4d3f0621e4f74aa7775bf0fd22a5b34c4fc41a17..6c41e26d46b57633ed9323d60d29a682732d4e76 100644 (file)
@@ -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 ;;