X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=top%2Fmaint.mk;h=de7a303d3d0ed4ffd3cf1c3346cea5433a42bd0c;hb=4027785526fce3ec49b4c2b2dcd40df07f8a211d;hp=e52deb45df8c668a9f6e496572a0cf9e82bcc974;hpb=6061979365c067965ee376b3d0a65819779a89c5;p=gnulib.git diff --git a/top/maint.mk b/top/maint.mk index e52deb45d..de7a303d3 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -1121,9 +1121,11 @@ fix_po_file_diag = \ 'you have changed the set of files with translatable diagnostics;\n\ apply the above patch\n' -# Verify that all source files using _() are listed in po/POTFILES.in. +# Verify that all source files using _() (more specifically, files that +# contain the ERE translation-markers) are listed in po/POTFILES.in. po_file ?= $(srcdir)/po/POTFILES.in generated_files ?= $(srcdir)/lib/*.[ch] +translation-markers ?= \b(N?_|gettext *)\([^)"]*("|$$) sc_po_check: @if test -f $(po_file); then \ grep -E -v '^(#|$$)' $(po_file) \ @@ -1143,7 +1145,7 @@ sc_po_check: esac; \ files="$$files $$file"; \ done; \ - grep -E -l '\b(N?_|gettext *)\([^)"]*("|$$)' $$files \ + grep -E -l '$(translation-markers)' $$files \ | sed 's|^$(_dot_escaped_srcdir)/||' | sort -u > $@-2; \ diff -u -L $(po_file) -L $(po_file) $@-1 $@-2 \ || { printf '$(ME): '$(fix_po_file_diag) 1>&2; exit 1; }; \