* automake.in ($am_file): Be `local', as my'd variables used in
authorAkim Demaille <akim@epita.fr>
Mon, 26 Feb 2001 13:59:47 +0000 (13:59 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 26 Feb 2001 13:59:47 +0000 (13:59 +0000)
`foreach' loops are always private to the loop.

ChangeLog
Makefile.am
Makefile.in
automake.in
lib/am/Makefile.am

index 1af1212..65461e2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-02-26  Akim Demaille  <akim@epita.fr>
+
+       * automake.in ($am_file): Be `local', as my'd variables used in
+       `foreach' loops are always private to the loop.
+
 2001-02-26  Pavel Roskin  <proski@gnu.org>
 
        * Makefile.am: Add install.am.
index 42cb2d2..eb420ec 100644 (file)
@@ -117,15 +117,15 @@ maintainer-check: automake aclocal
 ## Up to now we manage to limit to 6 uses of local.
        @locals=`grep -c '^[ \t]*local [^*]' $(srcdir)/automake.in`; \
        case $$locals in \
-         [0-5] ) \
+         [0-6] ) \
            echo "Wow, congrats!  There are $$locals \`local' now!." >&2; \
            echo "Please update Makefile.am (maintainer-check)." >&2; \
            exit 1; \
          ;; \
-         6 ) ;; \
+         7 ) ;; \
          * ) \
            echo "Too many \`local'!  Are you sure you need $$locals of them?" >&2; \
-           echo "Up to now 6 was enough." >&2; \
+           echo "Up to now 7 was enough." >&2; \
            exit 1; \
          ;; \
        esac
index fc3173e..6a7d31b 100644 (file)
@@ -643,15 +643,15 @@ maintainer-check: automake aclocal
        fi
        @locals=`grep -c '^[ \t]*local [^*]' $(srcdir)/automake.in`; \
        case $$locals in \
-         [0-5] ) \
+         [0-6] ) \
            echo "Wow, congrats!  There are $$locals \`local' now!." >&2; \
            echo "Please update Makefile.am (maintainer-check)." >&2; \
            exit 1; \
          ;; \
-         6 ) ;; \
+         7 ) ;; \
          * ) \
            echo "Too many \`local'!  Are you sure you need $$locals of them?" >&2; \
-           echo "Up to now 6 was enough." >&2; \
+           echo "Up to now 7 was enough." >&2; \
            exit 1; \
          ;; \
        esac
index 1bb1f70..d459418 100755 (executable)
@@ -419,7 +419,9 @@ die "$me: no \`Makefile.am' found or specified\n"
     if ! @input_files;
 
 # Now do all the work on each file.
-foreach my $am_file (@input_files)
+# This guy must be local otherwise it's private to the loop.
+local $am_file;
+foreach $am_file (@input_files)
 {
     if (! -f ($am_file . '.am'))
     {
index 42cb2d2..eb420ec 100644 (file)
@@ -117,15 +117,15 @@ maintainer-check: automake aclocal
 ## Up to now we manage to limit to 6 uses of local.
        @locals=`grep -c '^[ \t]*local [^*]' $(srcdir)/automake.in`; \
        case $$locals in \
-         [0-5] ) \
+         [0-6] ) \
            echo "Wow, congrats!  There are $$locals \`local' now!." >&2; \
            echo "Please update Makefile.am (maintainer-check)." >&2; \
            exit 1; \
          ;; \
-         6 ) ;; \
+         7 ) ;; \
          * ) \
            echo "Too many \`local'!  Are you sure you need $$locals of them?" >&2; \
-           echo "Up to now 6 was enough." >&2; \
+           echo "Up to now 7 was enough." >&2; \
            exit 1; \
          ;; \
        esac