[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoconf option fun
From: |
Pavel Roskin |
Subject: |
Re: autoconf option fun |
Date: |
Tue, 7 Nov 2000 12:42:57 -0500 (EST) |
Hello, Akim!
> Yep, I'm in favor of removing all the --a* etc. it makes it uselessly
> ambiguous, and short options are a better means to abbreviate. And
> trying to support exact abbreviations, as is done in configure, is an
> additional tedious maintenance nightmare. Maybe the day we rewrite
> these guys atop M4sh we will improve this support, but before this,
> trying to ``fix'' this is a pure waste of time. Let's just remove
> thus --a*.
Ok, I assume I have your support. I'm applying the patch.
ChangeLog:
* autoconf.sh: Temporarily disable recognizing of abbreviated
long options - it's hard to maintain them by hand.
* autoheader.sh: Likewise.
* autoreconf.sh: Likewise.
* autoupdate.sh: Likewise.
* ifnames.sh: Likewise.
Regards,
Pavel Roskin
__________________________________
Index: autoconf.sh
--- autoconf.sh Fri Nov 3 11:47:33 2000
+++ autoconf.sh Tue Nov 7 12:31:43 2000
@@ -133,72 +133,72 @@
optarg=`expr "x$1" : 'x--[^=]*=\(.*\)' \| \
"x$1" : 'x-.\(.*\)'`
case $1 in
- --version | --vers* | -V )
+ --version | -V )
echo "$version" ; exit 0 ;;
- --help | --h* | -h )
+ --help | -h )
echo "$usage"; exit 0 ;;
- --debug | --d* | -d )
+ --debug | -d )
debug=:; shift ;;
- --verbose | --verb* | -v )
+ --verbose | -v )
verbose=echo
shift;;
- --localdir=* | --l*=* | -l?* )
+ --localdir=* | -l?* )
localdir=$optarg
shift ;;
- --localdir | --l* | -l )
+ --localdir | -l )
test $# = 1 && eval "$exit_missing_arg"
shift
localdir=$1
shift ;;
- --autoconf-dir=* | --a*=* | -A?* )
+ --autoconf-dir=* | -A?* )
autoconf_dir=$optarg
shift ;;
- --autoconf-dir | --a* | -A )
+ --autoconf-dir | -A )
test $# = 1 && eval "$exit_missing_arg"
shift
autoconf_dir=$1
shift ;;
- --macrodir=* | --m*=* | -m?* )
+ --macrodir=* | -m?* )
echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&2
autoconf_dir=$optarg
shift ;;
- --macrodir | --m* | -m )
+ --macrodir | -m )
echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&2
test $# = 1 && eval "$exit_missing_arg"
shift
autoconf_dir=$1
shift ;;
- --trace=* | --t*=* | -t?* )
+ --trace=* | -t?* )
task=trace
traces="$traces '"`echo "$optarg" | sed "s/'/'\\\\\\\\''/g"`"'"
shift ;;
- --trace | --t* | -t )
+ --trace | -t )
test $# = 1 && eval "$exit_missing_arg"
task=trace
shift
traces="$traces '"`echo "$1" | sed "s/'/'\\\\\\\\''/g"`"'"
shift ;;
- --initialization | --i* | -i )
+ --initialization | -i )
initialization=:
shift;;
- --output=* | --o*=* | -o?* )
+ --output=* | -o?* )
outfile=$optarg
shift ;;
- --output | --o* | -o )
+ --output | -o )
test $# = 1 && eval "$exit_missing_arg"
shift
outfile=$1
shift ;;
- --warnings=* | --w*=* | -W?* )
+ --warnings=* | -W?* )
warnings=$warnings,$optarg
shift ;;
- --warnings | --w* | -W )
+ --warnings | -W )
test $# = 1 && eval "$exit_missing_arg"
shift
warnings=$warnings,$1
Index: autoheader.sh
--- autoheader.sh Fri Oct 27 09:48:15 2000
+++ autoheader.sh Tue Nov 7 12:32:17 2000
@@ -104,49 +104,49 @@
optarg=`expr "x$1" : 'x--[^=]*=\(.*\)' \| \
"x$1" : 'x-.\(.*\)'`
case $1 in
- --version | --vers* | -V )
+ --version | -V )
echo "$version" ; exit 0 ;;
- --help | --h* | -h )
+ --help | -h )
echo "$usage"; exit 0 ;;
- --debug | --d* | -d )
+ --debug | -d )
debug=:; shift ;;
- --verbose | --verb* | -v )
+ --verbose | -v )
verbose=echo
shift;;
- --localdir=* | --l*=* | -l?* )
+ --localdir=* | -l?* )
localdir=$optarg
shift ;;
- --localdir | --l* | -l )
+ --localdir | -l )
test $# = 1 && eval "$exit_missing_arg"
shift
localdir=$1
shift ;;
- --autoconf-dir=* | --a*=* | -A?* )
+ --autoconf-dir=* | -A?* )
autoconf_dir=$optarg
shift ;;
- --autoconf-dir | --a* | -A )
+ --autoconf-dir | -A )
test $# = 1 && eval "$exit_missing_arg"
shift
autoconf_dir=$1
shift ;;
- --macrodir=* | --m*=* | -m?* )
+ --macrodir=* | -m?* )
echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&2
autoconf_dir=$optarg
shift ;;
- --macrodir | --m* | -m )
+ --macrodir | -m )
echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&2
test $# = 1 && eval "$exit_missing_arg"
shift
autoconf_dir=$1
shift ;;
- --warnings=* | --w*=* | -W?* )
+ --warnings=* | -W?* )
warnings=$warnings,$optarg
shift ;;
- --warnings | --w* | -W )
+ --warnings | -W )
test $# = 1 && eval "$exit_missing_arg"
shift
warnings=$warnings,$1
Index: autoreconf.sh
--- autoreconf.sh Wed Nov 1 15:05:48 2000
+++ autoreconf.sh Tue Nov 7 12:32:50 2000
@@ -130,60 +130,60 @@
optarg=`expr "x$1" : 'x--[^=]*=\(.*\)' \| \
"x$1" : 'x-.\(.*\)'`
case "$1" in
- --version | --vers* | -V )
+ --version | -V )
echo "$version" ; exit 0 ;;
- --help | --h* | -h )
+ --help | -h )
echo "$usage"; exit 0 ;;
- --verbose | --verb* | -v )
+ --verbose | -v )
verbose=echo
shift;;
- --debug | --d* | -d )
+ --debug | -d )
debug=:; shift ;;
- --localdir=* | --l*=* | -l?* )
+ --localdir=* | -l?* )
localdir=$optarg
shift ;;
- --localdir | --l* | -l )
+ --localdir | -l )
test $# = 1 && eval "$exit_missing_arg"
shift
localdir=$1
shift ;;
- --autoconf-dir=* | --a*=* | -A?* )
+ --autoconf-dir=* | -A?* )
autoconf_dir=$optarg
shift ;;
- --autoconf-dir | --a* | -A )
+ --autoconf-dir | -A )
test $# = 1 && eval "$exit_missing_arg"
shift
autoconf_dir=$1
shift ;;
- --macrodir=* | --m*=* | -m?* )
+ --macrodir=* | -m?* )
echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&2
autoconf_dir=$optarg
shift ;;
- --macrodir | --m* | -m )
+ --macrodir | -m )
echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&2
test $# = 1 && eval "$exit_missing_arg"
shift
autoconf_dir=$1
shift ;;
- --m4dir=* | --m4*=* | -M?* )
+ --m4dir=* | -M?* )
m4dir=$optarg
shift ;;
- --m4dir | --m4* | -M )
+ --m4dir | -M )
test $# = 1 && eval "$exit_missing_arg"
shift
m4dir=$1
shift ;;
- --force | --forc* | -f )
+ --force | -f )
force=:; shift ;;
- --install | --ins* | -i )
+ --install | -i )
install=:; shift ;;
- --symlink | --s* | -s )
+ --symlink | -s )
symlink=:; shift ;;
# Options of Automake.
Index: autoupdate.sh
--- autoupdate.sh Thu Nov 2 10:20:51 2000
+++ autoupdate.sh Tue Nov 7 12:33:27 2000
@@ -116,39 +116,39 @@
optarg=`expr "x$1" : 'x--[^=]*=\(.*\)' \| \
"x$1" : 'x-.\(.*\)'`
case $1 in
- --version | --vers* | -V )
+ --version | -V )
echo "$version" ; exit 0 ;;
- --help | --h* | -h )
+ --help | -h )
echo "$usage"; exit 0 ;;
- --debug | --d* | -d )
+ --debug | -d )
debug=:; shift ;;
- --verbose | --verb* | -v )
+ --verbose | -v )
verbose=echo
shift;;
- --localdir=* | --l*=* | -l?* )
+ --localdir=* | -l?* )
localdir=$optarg
shift ;;
- --localdir | --l* | -l )
+ --localdir | -l )
test $# = 1 && eval "$exit_missing_arg"
shift
localdir=$1
shift ;;
- --autoconf-dir=* | --a*=* | -A?* )
+ --autoconf-dir=* | -A?* )
autoconf_dir=$optarg
shift ;;
- --autoconf-dir | --a* | -A )
+ --autoconf-dir | -A )
test $# = 1 && eval "$exit_missing_arg"
shift
autoconf_dir=$1
shift ;;
- --macrodir=* | --m*=* | -m?* )
+ --macrodir=* | -m?* )
echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&2
autoconf_dir=$optarg
shift ;;
- --macrodir | --m* | -m )
+ --macrodir | -m )
echo "$me: warning: --macrodir is obsolete, use --autoconf-dir" >&2
test $# = 1 && eval "$exit_missing_arg"
shift
Index: ifnames.sh
--- ifnames.sh Thu Nov 2 12:13:19 2000
+++ ifnames.sh Tue Nov 7 12:34:10 2000
@@ -52,9 +52,9 @@
while test $# -gt 0; do
case "$1" in
- --h* | -h )
+ --help | -h )
echo "$usage"; exit 0 ;;
- --v* | -V )
+ --version | -V )
echo "$version"; exit 0 ;;
--) # Stop option processing.
shift; break ;;
__________________________________
- Re: autoconf option fun,
Pavel Roskin <=