From: Bruno Haible Date: Sun, 16 Aug 2009 17:53:03 +0000 (+0200) Subject: Pass the package name and version to xgettext. X-Git-Tag: v0.18~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b29215e6269c0eafe10ad22b048834ed87f57846;p=thirdparty%2Fgettext.git Pass the package name and version to xgettext. --- diff --git a/gettext-tools/examples/ChangeLog b/gettext-tools/examples/ChangeLog index 508ba2dcd..b8b6f0bf1 100644 --- a/gettext-tools/examples/ChangeLog +++ b/gettext-tools/examples/ChangeLog @@ -1,3 +1,9 @@ +2009-08-16 Bruno Haible + + * 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 * hello-objc-gnustep/po/GNUmakefile: Apply part of 2005-02-07 changes diff --git a/gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile b/gettext-tools/examples/hello-objc-gnustep/po/GNUmakefile index c4d88848a..de25ff2f4 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 || { \