summaryrefslogtreecommitdiff
path: root/maint.mk
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-11-20 09:23:24 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-11-20 09:33:59 +0100
commit5653b4db4ee6ae5a8600ecacaedb577080dac0d4 (patch)
tree64e42e18241e3bbe893ec1d234210b59437b9765 /maint.mk
parent7150a903a274492f88b4580d26c667ddc40fee67 (diff)
downloadgnutls-5653b4db4ee6ae5a8600ecacaedb577080dac0d4.tar.gz
use gnulib to detect iconv.
Diffstat (limited to 'maint.mk')
-rw-r--r--maint.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/maint.mk b/maint.mk
index e52deb45df..ea44eceb1b 100644
--- a/maint.mk
+++ b/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
+# match $(_gl_translatable_string_re)) are listed in po/POTFILES.in.
po_file ?= $(srcdir)/po/POTFILES.in
generated_files ?= $(srcdir)/lib/*.[ch]
+_gl_translatable_string_re ?= \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 '$(_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; }; \