From 9fddf5af62f80a83a1f03e604228114396358a18 Mon Sep 17 00:00:00 2001 From: "K. Richard Pixley" Date: Tue, 6 Aug 1991 19:26:01 +0000 Subject: [PATCH] revised option parsing. --- configure | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/configure b/configure index 072d639..d561320 100755 --- a/configure +++ b/configure @@ -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 -- 2.7.4