diff options
author | K. Richard Pixley <rich@cygnus> | 1991-08-06 19:26:01 +0000 |
---|---|---|
committer | K. Richard Pixley <rich@cygnus> | 1991-08-06 19:26:01 +0000 |
commit | 9fddf5af62f80a83a1f03e604228114396358a18 (patch) | |
tree | e7efcd3b9b068644cbce7e477cfa29392daf7981 /configure | |
parent | 4101d8683819f444840a46569202d92b6a47fd1d (diff) | |
download | gdb-9fddf5af62f80a83a1f03e604228114396358a18.zip gdb-9fddf5af62f80a83a1f03e604228114396358a18.tar.gz gdb-9fddf5af62f80a83a1f03e604228114396358a18.tar.bz2 |
revised option parsing.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 26 |
1 files changed, 14 insertions, 12 deletions
@@ -67,14 +67,13 @@ verbose= for arg in $*; do case ${arg} in - -ansi | +ansi) + -ansi | +a*) ansi=true ;; -destdir=* | +destdir=* | +destdi=* | +destd=* | +dest=* | +des=* | +de=* | +d=*) destdir=`echo ${arg} | sed 's/[+-]d[a-z]*=//'` ;; - -forcesubdirs | +forcesubdirs | +forcesubdir | +forcesubdi | +forcesubd \ - | +forcesub | +forcesu | +forces | +force | +forc | +for | +fo | +f) + -forcesubdirs | +f*) forcesubdirs=${arg} ;; -languages=* | +languages=* | +language=* | +languag=* \ @@ -82,25 +81,25 @@ do | +l=*) languages="${languages} `echo ${arg} | sed 's/[+-]l[a-z]*=//'`" ;; - -gas | +gas | +ga | +g) + -gas | +g) gas=yes ;; - -help | +h | +help) + -help | +h*) fatal=true ;; - -nfp | +nfp | +nf | +n) + -nfp | +nf*) nfp=yes ;; - -norecurse | +norecurse) + -norecurse | +no*) norecurse=true ;; - -rm | +rm) + -rm | +r*) removing=${arg} ;; # -srcdir=* | +srcdir=* | +srcdi=* | +srcd=* | +src=* | +sr=* | +s=*) # srcdir=`echo ${arg} | sed 's/[+-]s[a-z]*=//'` # ;; - -target=* | +target=* | +targe=* | +targ=* | +tar=* | +ta=* | +t=*) + -target=* | +target=* | +targe=* | +targ=* | +tar=* | +ta=*) if [ -n "${targets}" ] ; then forcesubdirs="+forcesubdirs" fi @@ -108,10 +107,10 @@ do newtargets="${targets} `echo ${arg} | sed 's/[+-]t[a-z]*=//'`" targets="${newtargets}" ;; - -template=* | +template=*) + -template=* | +template=* | +templat=* | +templa=* | +templ=* | +temp=* | +tem=* | +te=*) template=`echo ${arg} | sed 's/[+-]template=//'` ;; - +verbose | +verbos | +verbo | +verb | +ver | +ve | +v) + -verbose | +v*) verbose=${arg} ;; -* | +*) @@ -617,7 +616,10 @@ exit 0 # # $Log$ -# Revision 1.23 1991/08/06 19:12:32 rich +# Revision 1.24 1991/08/06 19:26:01 rich +# revised option parsing. +# +# Revision 1.23 1991/08/06 19:12:32 rich # Host-level GNUmakefiles. # # Revision 1.22 1991/07/20 01:22:30 rich |