]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Minor cleanups
authorTom Tromey <tromey@redhat.com>
Tue, 14 Nov 1995 23:38:17 +0000 (23:38 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 14 Nov 1995 23:38:17 +0000 (23:38 +0000)
automake.in

index 109462b6c4dedfb3c7f3fb39740d3e0fa0de204a..f2ad7c61cdf89d2b6193fff08dfe6d81051d913b 100755 (executable)
@@ -36,7 +36,6 @@ 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* )
@@ -63,7 +62,6 @@ while test $# -gt 0; do
 
     * )
        mfiles="$mfiles $1"
-       ok=yes
        ;;
    esac
    shift
@@ -71,11 +69,10 @@ done
 
 # FIXME in this case, should look for Makefile.am, */Makefile.am and
 # use those.
-if test "$ok" = no; then
+test -n "$mfiles" || {
    echo "${usage}" 1>&2
    exit 1
-fi
-set $mfiles
+}
 
 am_status=0
 
@@ -111,7 +108,7 @@ p
 s/^ *\([A-Z][A-Z0-9_]*\)[       ]*=[    ]*\(.*\)/\1='\2'/p
 EOF
 
-for am_makefile
+for am_makefile in $mfiles
 do
   if test ! -f ${am_makefile}.am; then
     echo "automake: ${am_makefile}.am: No such honkin' file"