From: Tom Tromey Date: Sun, 12 Nov 1995 23:41:03 +0000 (+0000) Subject: More arg-parsing bug fixes. X-Git-Tag: v1.10.2~4053 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4819a3b7401f76e02dea4c27643c2aa0bc745045;p=platform%2Fupstream%2Fautomake.git More arg-parsing bug fixes. --- diff --git a/automake.in b/automake.in index 0b3e729..b4a5d2e 100755 --- a/automake.in +++ b/automake.in @@ -32,6 +32,7 @@ if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi if test "${LANG+set}" = set; then LANG=C; export LANG; fi mfiles= +ok=no while test $# -gt 0; do case "$1" in --help | --h* ) @@ -57,7 +58,8 @@ while test $# -gt 0; do ;; * ) - mfiles="$mfiles $arg" + mfiles="$mfiles $1" + ok=yes ;; esac shift @@ -65,7 +67,7 @@ done # FIXME in this case, should look for Makefile.am, */Makefile.am and # use those. -if test ${#mfiles} -eq 0; then +if test "$ok" = no; then echo "${usage}" 1>&2 exit 1 fi