]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Pass the package name and version to xgettext.
authorBruno Haible <bruno@clisp.org>
Sun, 16 Aug 2009 17:53:03 +0000 (19:53 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 16 Aug 2009 17:53:03 +0000 (19:53 +0200)
gettext-tools/examples/ChangeLog
gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile

index 508ba2dcd79be2ca771b84fb5488900fc36582a0..b8b6f0bf1d19f17a4bdb5286ff4f1cda0498c437 100644 (file)
@@ -1,3 +1,9 @@
+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
index c4d88848a1350595d93559db3f6e88d822ffcede..de25ff2f44798c6ed32f3707cf0f3a1edd90710f 100644 (file)
@@ -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 || { \