]> git.saurik.com Git - bison.git/blobdiff - Makefile.maint
(declaration): Use enum "report_states" rather
[bison.git] / Makefile.maint
index e2e90f742f70553269fa9ba80f54265c64b90271..514416f1bb49f593a4ebd5ad6e8e1848da74ffc8 100644 (file)
@@ -97,7 +97,16 @@ m4-check:
 po-check:
        if test -f po/POTFILES.in; then \
          grep -E -v '^(#|$$)' po/POTFILES.in | sort > $@-1; \
-         grep -E -l '\b_\(' lib/*.[ch] src/*.[ch] | sort > $@-2; \
+         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 > $@-2; \
          diff -u $@-1 $@-2 || exit 1; \
          rm -f $@-1 $@-2; \
        fi
@@ -346,7 +355,7 @@ wget-update: $(get-targets)
 cvs-update:
        for f in $(cvs_files); do                                     \
          test -f $$f || { echo "*** skipping $$f" 1>&2; continue; }; \
-         file=$$(basename $$f);                                      \
+         file=`basename $$f`;                                        \
          echo checking out $$file...;                                \
          $(CVS) -d $(automake_repo) co -p automake/lib/$$file> $$f.t \
            && $(move_if_change) $$f.t $$f;                           \