summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-08-16 19:53:03 +0200
committerBruno Haible <bruno@clisp.org>2009-08-16 19:53:03 +0200
commitb29215e6269c0eafe10ad22b048834ed87f57846 (patch)
treecc8fb5e305dd2584c52a9e46fd1cd7563720b42e
parent36987a4fd624424c9f3b6cdc83ed296eb496f541 (diff)
downloadexternal_gettext-b29215e6269c0eafe10ad22b048834ed87f57846.zip
external_gettext-b29215e6269c0eafe10ad22b048834ed87f57846.tar.gz
external_gettext-b29215e6269c0eafe10ad22b048834ed87f57846.tar.bz2
Pass the package name and version to xgettext.
-rw-r--r--gettext-tools/examples/ChangeLog6
-rw-r--r--gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile11
2 files changed, 17 insertions, 0 deletions
diff --git a/gettext-tools/examples/ChangeLog b/gettext-tools/examples/ChangeLog
index 508ba2d..b8b6f0b 100644
--- a/gettext-tools/examples/ChangeLog
+++ b/gettext-tools/examples/ChangeLog
@@ -1,5 +1,11 @@
2009-08-16 Bruno Haible <bruno@clisp.org>
+ * hello-objc-gnustep/po/GNUmakefile: Apply 2007-10-17 changes to
+ hello-*/po/Makefile.am.
+ (PACKAGE_NAME, PACKAGE_VERSION): New variables.
+
+2009-08-16 Bruno Haible <bruno@clisp.org>
+
* hello-objc-gnustep/po/GNUmakefile: Apply part of 2005-02-07 changes
to hello-*/po/Makefile.am..
diff --git a/gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile b/gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile
index c4d8884..de25ff2 100644
--- a/gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile
+++ b/gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile
@@ -44,6 +44,10 @@ MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org
-include $(GNUSTEP_MAKEFILES)/rules.make
+# Main application
+PACKAGE_NAME = Hello
+PACKAGE_VERSION = 0
+
XGETTEXT = xgettext
MSGMERGE = msgmerge
MSGMERGE_UPDATE = msgmerge --update
@@ -87,10 +91,17 @@ all-local-no:
# 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_DEPS) remove-potcdate.sed
+ if LC_ALL=C grep 'GNU $(PACKAGE_NAME)' ../* 2>/dev/null >/dev/null; then \
+ package_gnu='GNU '; \
+ else \
+ package_gnu=''; \
+ fi; \
msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
$(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
--add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
--copyright-holder='$(COPYRIGHT_HOLDER)' \
+ --package-name="$${package_gnu}$(PACKAGE_NAME)" \
+ --package-version='$(VERSION)' \
--msgid-bugs-address="$$msgid_bugs_address" \
$(POTFILES)
test ! -f $(DOMAIN).po || { \