diff options
author | Bruno Haible <bruno@clisp.org> | 2007-10-01 01:00:14 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:15:07 +0200 |
commit | 410f0286312ba391008bdaf7213b2136e4e57278 (patch) | |
tree | 73429a224a4972287208052bf28ad68cb2e03eb3 /gettext-runtime/po | |
parent | 70173946f4e98b12a4d03475c0c3926cf7b859fa (diff) | |
download | external_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')
-rw-r--r-- | gettext-runtime/po/ChangeLog | 5 | ||||
-rw-r--r-- | gettext-runtime/po/Makefile.in.in | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gettext-runtime/po/ChangeLog b/gettext-runtime/po/ChangeLog index 9a61b5e..134300c 100644 --- a/gettext-runtime/po/ChangeLog +++ b/gettext-runtime/po/ChangeLog @@ -1,3 +1,8 @@ +2007-09-30 Bruno Haible <bruno@clisp.org> + + * Makefile.in.in ($(DOMAIN).pot-update): Pass the package name and + version to xgettext. + 2007-09-15 Bruno Haible <bruno@clisp.org> * sk.po: Update from Marcel Telka <marcel@telka.sk>. 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 \ |