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=* \
| +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
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}
;;
-* | +*)
#
# $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