summaryrefslogtreecommitdiffstats
path: root/gettext-runtime/po/Makefile.in.in
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-10-01 01:00:14 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:15:07 +0200
commit410f0286312ba391008bdaf7213b2136e4e57278 (patch)
tree73429a224a4972287208052bf28ad68cb2e03eb3 /gettext-runtime/po/Makefile.in.in
parent70173946f4e98b12a4d03475c0c3926cf7b859fa (diff)
downloadexternal_gettext-410f0286312ba391008bdaf7213b2136e4e57278.zip
external_gettext-410f0286312ba391008bdaf7213b2136e4e57278.tar.gz
external_gettext-410f0286312ba391008bdaf7213b2136e4e57278.tar.bz2
Pass the package name and version to xgettext.
Diffstat (limited to 'gettext-runtime/po/Makefile.in.in')
-rw-r--r--gettext-runtime/po/Makefile.in.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/gettext-runtime/po/Makefile.in.in b/gettext-runtime/po/Makefile.in.in
index 42f0237..b5d3a7a 100644
--- a/gettext-runtime/po/Makefile.in.in
+++ b/gettext-runtime/po/Makefile.in.in
@@ -138,6 +138,11 @@ stamp-po: $(srcdir)/$(DOMAIN).pot
# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
+ if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null | grep -v '^libtool:' >/dev/null; then
+ package_gnu='GNU '; \
+ else \
+ package_gnu=''; \
+ fi; \
if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \
msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
else \
@@ -147,6 +152,8 @@ $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
--add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
--files-from=$(srcdir)/POTFILES.in \
--copyright-holder='$(COPYRIGHT_HOLDER)' \
+ --package-name="$${package_gnu}@PACKAGE@" \
+ --package-version='@VERSION@' \
--msgid-bugs-address="$$msgid_bugs_address"
test ! -f $(DOMAIN).po || { \
if test -f $(srcdir)/$(DOMAIN).pot; then \