From 410f0286312ba391008bdaf7213b2136e4e57278 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 1 Oct 2007 01:00:14 +0000 Subject: Pass the package name and version to xgettext. --- gettext-runtime/po/ChangeLog | 5 +++++ gettext-runtime/po/Makefile.in.in | 7 +++++++ 2 files changed, 12 insertions(+) (limited to 'gettext-runtime/po') 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 + + * Makefile.in.in ($(DOMAIN).pot-update): Pass the package name and + version to xgettext. + 2007-09-15 Bruno Haible * sk.po: Update from Marcel Telka . 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 \ -- cgit v1.1