autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Makefile.maint


From: Akim Demaille
Subject: Makefile.maint
Date: 14 Nov 2002 12:15:27 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter)

Now Bison and Autoconf are using the same Makefile.am again.

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * Makefile.maint: Sync with Bison, i.e.:
        (po-check): Scan .l and .y files instead of the
        .c and the .h files that they generate.  This fixes the bug
        reported by Tim Van Holder in:
        <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
        Look for N_ as well as for _.  Try to avoid matching #define for
        N_ and _.
        From Paul Eggert.

Index: Makefile.maint
===================================================================
RCS file: /cvsroot/autoconf/autoconf/Makefile.maint,v
retrieving revision 1.21
diff -u -u -r1.21 Makefile.maint
--- Makefile.maint 7 Nov 2002 14:03:41 -0000 1.21
+++ Makefile.maint 14 Nov 2002 11:14:55 -0000
@@ -97,7 +97,16 @@
 po-check:
        if test -f po/POTFILES.in; then \
          grep -E -v '^(#|$$)' po/POTFILES.in | sort > address@hidden; \
-         grep -E -l '\b_\(' lib/*.[ch] src/*.[ch] | sort > address@hidden; \
+         files=; \
+         for file in lib/*.[chly] src/*.[chly]; do \
+           case $$file in \
+           *.[ch]) \
+             base=`expr " $$file" : ' \(.*\)\..'`; \
+             { test -f $$base.l || test -f $$base.y; } && continue;; \
+           esac; \
+           files="$$files $$file"; \
+         done; \
+         grep -E -l '\bN?_\([^)"]*("|$$)' $$files | sort > address@hidden; \
          diff -u address@hidden address@hidden || exit 1; \
          rm -f address@hidden address@hidden; \
        fi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]