summaryrefslogtreecommitdiff
path: root/top/maint.mk
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2012-10-28 08:38:09 +0100
committerJim Meyering <jim@meyering.net>2012-10-30 14:45:23 +0100
commit04e49dd5a91f7113d000d4bd61f79bc14198b184 (patch)
tree0f85fd18d6afe92d097fd67d19d9ffe4947ba8e0 /top/maint.mk
parent3ac269ac422ab53755f80262bdda7547f3f50cd6 (diff)
downloadgnulib-04e49dd5a91f7113d000d4bd61f79bc14198b184.tar.gz
maint.mk: rename a new configurable variable
* top/maint.mk (_gl_translatable_string_re): Rename from translation-markers: _gl_ prefix to insulate from user Makefile code, and the _re suffix to inform that it's a regular expression.
Diffstat (limited to 'top/maint.mk')
-rw-r--r--top/maint.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/top/maint.mk b/top/maint.mk
index de7a303d3d..ea44eceb1b 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -1122,10 +1122,10 @@ fix_po_file_diag = \
apply the above patch\n'
# Verify that all source files using _() (more specifically, files that
-# contain the ERE translation-markers) are listed in po/POTFILES.in.
+# match $(_gl_translatable_string_re)) are listed in po/POTFILES.in.
po_file ?= $(srcdir)/po/POTFILES.in
generated_files ?= $(srcdir)/lib/*.[ch]
-translation-markers ?= \b(N?_|gettext *)\([^)"]*("|$$)
+_gl_translatable_string_re ?= \b(N?_|gettext *)\([^)"]*("|$$)
sc_po_check:
@if test -f $(po_file); then \
grep -E -v '^(#|$$)' $(po_file) \
@@ -1145,7 +1145,7 @@ sc_po_check:
esac; \
files="$$files $$file"; \
done; \
- grep -E -l '$(translation-markers)' $$files \
+ grep -E -l '$(_gl_translatable_string_re)' $$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; }; \