More bug fixes in "look for Makefile.am" code.
authorTom Tromey <tromey@redhat.com>
Thu, 16 Nov 1995 08:14:44 +0000 (08:14 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 16 Nov 1995 08:14:44 +0000 (08:14 +0000)
automake.in

index 61b25a1..9f226e9 100755 (executable)
@@ -69,7 +69,7 @@ done
 
 test -n "$mfiles" || {
    # Look around.
-   mfiles=*/Makefile.am
+   mfiles=`echo */Makefile.am`
    if test "$mfiles" = '*/Makefile.am'; then
       mfiles=
    else
@@ -79,13 +79,16 @@ test -n "$mfiles" || {
    if test -f Makefile.am; then
       mfiles="Makefile $mfiles"
    fi
-}
 
-test -n "$mfiles" || {
-   echo "${usage}" 1>&2
-   exit 1
+   if test -n "$mfiles"; then
+      echo "automake: using $mfiles" 1>&2
+   else
+      echo "${usage}" 1>&2
+      exit 1
+   fi
 }
 
+
 am_status=0
 
 # Remove \newline.
@@ -131,9 +134,9 @@ EOF
 for am_makefile in $mfiles
 do
   if test ! -f ${am_makefile}.am; then
-    echo "automake: ${am_makefile}.am: No such honkin' file"
-    am_status=1
-    continue
+     echo "automake: ${am_makefile}.am: No such honkin' file" 1>&2
+     am_status=1
+     continue
   fi
 
   echo creating ${am_makefile}.in