From: Pavel Roskin Date: Fri, 27 Oct 2000 13:47:54 +0000 (+0000) Subject: * autoconf.sh: Recognize short options followed by arguments X-Git-Tag: autoconf-2.50~517 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c46d9d8480e5525099e9cd46834bdc10f96a3379;p=thirdparty%2Fautoconf.git * autoconf.sh: Recognize short options followed by arguments without separators. * autoheader.sh: Likewise. * autoreconf.sh: Likewise. Recognize abbreviations for "--autoconf-dir" and "--m4dir" * autoupdate.sh: Likewise. Recognize abbreviations for "--autoconf-dir" --- diff --git a/ChangeLog b/ChangeLog index 18877461b..822748d32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2000-10-27 Pavel Roskin + + * autoconf.sh: Recognize short options followed by arguments + without separators. + * autoheader.sh: Likewise. + * autoreconf.sh: Likewise. Recognize abbreviations for + "--autoconf-dir" and "--m4dir" + * autoupdate.sh: Likewise. Recognize abbreviations for + "--autoconf-dir" + 2000-10-26 Pavel Roskin * autoconf.sh: Don't show obsolete options on "--help". Report diff --git a/autoconf.in b/autoconf.in index c1e202279..cb9298bcf 100644 --- a/autoconf.in +++ b/autoconf.in @@ -144,7 +144,7 @@ while test $# -gt 0 ; do verbose=echo shift;; - --localdir=* | --l*=* ) + --localdir=* | --l*=* | -l?* ) localdir=$optarg shift ;; --localdir | --l* | -l ) @@ -153,7 +153,7 @@ while test $# -gt 0 ; do localdir=$1 shift ;; - --autoconf-dir=* | --a*=* ) + --autoconf-dir=* | --a*=* | -A?* ) autoconf_dir=$optarg shift ;; --autoconf-dir | --a* | -A ) @@ -161,7 +161,7 @@ while test $# -gt 0 ; do shift autoconf_dir=$1 shift ;; - --macrodir=* | --m*=* ) + --macrodir=* | --m*=* | -m?* ) echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&2 autoconf_dir=$optarg shift ;; @@ -172,7 +172,7 @@ while test $# -gt 0 ; do autoconf_dir=$1 shift ;; - --trace=* | --t*=* ) + --trace=* | --t*=* | -t?* ) task=trace traces="$traces '"`echo "$optarg" | sed "s/'/'\\\\\\\\''/g"`"'" shift ;; @@ -186,7 +186,7 @@ while test $# -gt 0 ; do initialization=: shift;; - --output=* | --o*=* ) + --output=* | --o*=* | -o?* ) outfile=$optarg shift ;; --output | --o* | -o ) @@ -195,7 +195,7 @@ while test $# -gt 0 ; do outfile=$1 shift ;; - --warnings=* | --w*=* ) + --warnings=* | --w*=* | -W?* ) warnings=$warnings,$optarg shift ;; --warnings | --w* | -W ) diff --git a/autoconf.sh b/autoconf.sh index c1e202279..cb9298bcf 100644 --- a/autoconf.sh +++ b/autoconf.sh @@ -144,7 +144,7 @@ while test $# -gt 0 ; do verbose=echo shift;; - --localdir=* | --l*=* ) + --localdir=* | --l*=* | -l?* ) localdir=$optarg shift ;; --localdir | --l* | -l ) @@ -153,7 +153,7 @@ while test $# -gt 0 ; do localdir=$1 shift ;; - --autoconf-dir=* | --a*=* ) + --autoconf-dir=* | --a*=* | -A?* ) autoconf_dir=$optarg shift ;; --autoconf-dir | --a* | -A ) @@ -161,7 +161,7 @@ while test $# -gt 0 ; do shift autoconf_dir=$1 shift ;; - --macrodir=* | --m*=* ) + --macrodir=* | --m*=* | -m?* ) echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&2 autoconf_dir=$optarg shift ;; @@ -172,7 +172,7 @@ while test $# -gt 0 ; do autoconf_dir=$1 shift ;; - --trace=* | --t*=* ) + --trace=* | --t*=* | -t?* ) task=trace traces="$traces '"`echo "$optarg" | sed "s/'/'\\\\\\\\''/g"`"'" shift ;; @@ -186,7 +186,7 @@ while test $# -gt 0 ; do initialization=: shift;; - --output=* | --o*=* ) + --output=* | --o*=* | -o?* ) outfile=$optarg shift ;; --output | --o* | -o ) @@ -195,7 +195,7 @@ while test $# -gt 0 ; do outfile=$1 shift ;; - --warnings=* | --w*=* ) + --warnings=* | --w*=* | -W?* ) warnings=$warnings,$optarg shift ;; --warnings | --w* | -W ) diff --git a/autoheader.in b/autoheader.in index 15efe2f27..c2ccaa720 100644 --- a/autoheader.in +++ b/autoheader.in @@ -115,7 +115,7 @@ while test $# -gt 0 ; do verbose=echo shift;; - --localdir=* | --l*=* ) + --localdir=* | --l*=* | -l?* ) localdir=$optarg shift ;; --localdir | --l* | -l ) @@ -124,7 +124,7 @@ while test $# -gt 0 ; do localdir=$1 shift ;; - --autoconf-dir=* | --a*=* ) + --autoconf-dir=* | --a*=* | -A?* ) autoconf_dir=$optarg shift ;; --autoconf-dir | --a* | -A ) @@ -132,7 +132,7 @@ while test $# -gt 0 ; do shift autoconf_dir=$1 shift ;; - --macrodir=* | --m*=* ) + --macrodir=* | --m*=* | -m?* ) echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&2 autoconf_dir=$optarg shift ;; @@ -143,7 +143,7 @@ while test $# -gt 0 ; do autoconf_dir=$1 shift ;; - --warnings=* | --w*=* ) + --warnings=* | --w*=* | -W?* ) warnings=$warnings,$optarg shift ;; --warnings | --w* | -W ) diff --git a/autoheader.sh b/autoheader.sh index 15efe2f27..c2ccaa720 100644 --- a/autoheader.sh +++ b/autoheader.sh @@ -115,7 +115,7 @@ while test $# -gt 0 ; do verbose=echo shift;; - --localdir=* | --l*=* ) + --localdir=* | --l*=* | -l?* ) localdir=$optarg shift ;; --localdir | --l* | -l ) @@ -124,7 +124,7 @@ while test $# -gt 0 ; do localdir=$1 shift ;; - --autoconf-dir=* | --a*=* ) + --autoconf-dir=* | --a*=* | -A?* ) autoconf_dir=$optarg shift ;; --autoconf-dir | --a* | -A ) @@ -132,7 +132,7 @@ while test $# -gt 0 ; do shift autoconf_dir=$1 shift ;; - --macrodir=* | --m*=* ) + --macrodir=* | --m*=* | -m?* ) echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&2 autoconf_dir=$optarg shift ;; @@ -143,7 +143,7 @@ while test $# -gt 0 ; do autoconf_dir=$1 shift ;; - --warnings=* | --w*=* ) + --warnings=* | --w*=* | -W?* ) warnings=$warnings,$optarg shift ;; --warnings | --w* | -W ) diff --git a/autoreconf.in b/autoreconf.in index 9d62774c9..5d3634d13 100644 --- a/autoreconf.in +++ b/autoreconf.in @@ -141,7 +141,7 @@ while test $# -gt 0; do --debug | --d* | -d ) debug=:; shift ;; - --localdir=* | --l*=* ) + --localdir=* | --l*=* | -l?* ) localdir=$optarg shift ;; --localdir | --l* | -l ) @@ -150,15 +150,15 @@ while test $# -gt 0; do localdir=$1 shift ;; - --autoconf-dir=*) + --autoconf-dir=* | --a*=* | -A?* ) autoconf_dir=$optarg shift ;; - --autoconf-dir | -A* ) + --autoconf-dir | --a* | -A ) test $# = 1 && eval "$exit_missing_arg" shift autoconf_dir=$1 shift ;; - --macrodir=* | --m*=* ) + --macrodir=* | --m*=* | -m?* ) echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&2 autoconf_dir=$optarg shift ;; @@ -169,14 +169,14 @@ while test $# -gt 0; do autoconf_dir=$1 shift ;; - --m4dir | -M ) + --m4dir=* | --m4*=* | -M?* ) + m4dir=$optarg + shift ;; + --m4dir | --m4* | -M ) test $# = 1 && eval "$exit_missing_arg" shift m4dir=$1 shift ;; - --m4dir=* | -M* ) - m4dir=$optarg - shift ;; --force | --forc* | -f ) force=:; shift ;; diff --git a/autoreconf.sh b/autoreconf.sh index 9d62774c9..5d3634d13 100644 --- a/autoreconf.sh +++ b/autoreconf.sh @@ -141,7 +141,7 @@ while test $# -gt 0; do --debug | --d* | -d ) debug=:; shift ;; - --localdir=* | --l*=* ) + --localdir=* | --l*=* | -l?* ) localdir=$optarg shift ;; --localdir | --l* | -l ) @@ -150,15 +150,15 @@ while test $# -gt 0; do localdir=$1 shift ;; - --autoconf-dir=*) + --autoconf-dir=* | --a*=* | -A?* ) autoconf_dir=$optarg shift ;; - --autoconf-dir | -A* ) + --autoconf-dir | --a* | -A ) test $# = 1 && eval "$exit_missing_arg" shift autoconf_dir=$1 shift ;; - --macrodir=* | --m*=* ) + --macrodir=* | --m*=* | -m?* ) echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&2 autoconf_dir=$optarg shift ;; @@ -169,14 +169,14 @@ while test $# -gt 0; do autoconf_dir=$1 shift ;; - --m4dir | -M ) + --m4dir=* | --m4*=* | -M?* ) + m4dir=$optarg + shift ;; + --m4dir | --m4* | -M ) test $# = 1 && eval "$exit_missing_arg" shift m4dir=$1 shift ;; - --m4dir=* | -M* ) - m4dir=$optarg - shift ;; --force | --forc* | -f ) force=:; shift ;; diff --git a/bin/autoconf.in b/bin/autoconf.in index c1e202279..cb9298bcf 100644 --- a/bin/autoconf.in +++ b/bin/autoconf.in @@ -144,7 +144,7 @@ while test $# -gt 0 ; do verbose=echo shift;; - --localdir=* | --l*=* ) + --localdir=* | --l*=* | -l?* ) localdir=$optarg shift ;; --localdir | --l* | -l ) @@ -153,7 +153,7 @@ while test $# -gt 0 ; do localdir=$1 shift ;; - --autoconf-dir=* | --a*=* ) + --autoconf-dir=* | --a*=* | -A?* ) autoconf_dir=$optarg shift ;; --autoconf-dir | --a* | -A ) @@ -161,7 +161,7 @@ while test $# -gt 0 ; do shift autoconf_dir=$1 shift ;; - --macrodir=* | --m*=* ) + --macrodir=* | --m*=* | -m?* ) echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&2 autoconf_dir=$optarg shift ;; @@ -172,7 +172,7 @@ while test $# -gt 0 ; do autoconf_dir=$1 shift ;; - --trace=* | --t*=* ) + --trace=* | --t*=* | -t?* ) task=trace traces="$traces '"`echo "$optarg" | sed "s/'/'\\\\\\\\''/g"`"'" shift ;; @@ -186,7 +186,7 @@ while test $# -gt 0 ; do initialization=: shift;; - --output=* | --o*=* ) + --output=* | --o*=* | -o?* ) outfile=$optarg shift ;; --output | --o* | -o ) @@ -195,7 +195,7 @@ while test $# -gt 0 ; do outfile=$1 shift ;; - --warnings=* | --w*=* ) + --warnings=* | --w*=* | -W?* ) warnings=$warnings,$optarg shift ;; --warnings | --w* | -W ) diff --git a/bin/autoheader.in b/bin/autoheader.in index 15efe2f27..c2ccaa720 100644 --- a/bin/autoheader.in +++ b/bin/autoheader.in @@ -115,7 +115,7 @@ while test $# -gt 0 ; do verbose=echo shift;; - --localdir=* | --l*=* ) + --localdir=* | --l*=* | -l?* ) localdir=$optarg shift ;; --localdir | --l* | -l ) @@ -124,7 +124,7 @@ while test $# -gt 0 ; do localdir=$1 shift ;; - --autoconf-dir=* | --a*=* ) + --autoconf-dir=* | --a*=* | -A?* ) autoconf_dir=$optarg shift ;; --autoconf-dir | --a* | -A ) @@ -132,7 +132,7 @@ while test $# -gt 0 ; do shift autoconf_dir=$1 shift ;; - --macrodir=* | --m*=* ) + --macrodir=* | --m*=* | -m?* ) echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&2 autoconf_dir=$optarg shift ;; @@ -143,7 +143,7 @@ while test $# -gt 0 ; do autoconf_dir=$1 shift ;; - --warnings=* | --w*=* ) + --warnings=* | --w*=* | -W?* ) warnings=$warnings,$optarg shift ;; --warnings | --w* | -W ) diff --git a/bin/autoreconf.in b/bin/autoreconf.in index 9d62774c9..5d3634d13 100644 --- a/bin/autoreconf.in +++ b/bin/autoreconf.in @@ -141,7 +141,7 @@ while test $# -gt 0; do --debug | --d* | -d ) debug=:; shift ;; - --localdir=* | --l*=* ) + --localdir=* | --l*=* | -l?* ) localdir=$optarg shift ;; --localdir | --l* | -l ) @@ -150,15 +150,15 @@ while test $# -gt 0; do localdir=$1 shift ;; - --autoconf-dir=*) + --autoconf-dir=* | --a*=* | -A?* ) autoconf_dir=$optarg shift ;; - --autoconf-dir | -A* ) + --autoconf-dir | --a* | -A ) test $# = 1 && eval "$exit_missing_arg" shift autoconf_dir=$1 shift ;; - --macrodir=* | --m*=* ) + --macrodir=* | --m*=* | -m?* ) echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&2 autoconf_dir=$optarg shift ;; @@ -169,14 +169,14 @@ while test $# -gt 0; do autoconf_dir=$1 shift ;; - --m4dir | -M ) + --m4dir=* | --m4*=* | -M?* ) + m4dir=$optarg + shift ;; + --m4dir | --m4* | -M ) test $# = 1 && eval "$exit_missing_arg" shift m4dir=$1 shift ;; - --m4dir=* | -M* ) - m4dir=$optarg - shift ;; --force | --forc* | -f ) force=:; shift ;;