diff options
author | Bruno Haible <bruno@clisp.org> | 2007-10-18 15:22:00 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:15:19 +0200 |
commit | 5fa250bf3af0026839c386440f908f0784792814 (patch) | |
tree | a0ae61a0df58447bc7cfcebdd3736cee95511a28 /gettext-tools/examples/hello-tcl-tk/po | |
parent | 9b794b26308de53916cd904c80c7839721109be9 (diff) | |
download | external_gettext-5fa250bf3af0026839c386440f908f0784792814.zip external_gettext-5fa250bf3af0026839c386440f908f0784792814.tar.gz external_gettext-5fa250bf3af0026839c386440f908f0784792814.tar.bz2 |
Don't pass --package-name option to xgettext older than 0.16.2.
Diffstat (limited to 'gettext-tools/examples/hello-tcl-tk/po')
-rw-r--r-- | gettext-tools/examples/hello-tcl-tk/po/Makefile.am | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/gettext-tools/examples/hello-tcl-tk/po/Makefile.am b/gettext-tools/examples/hello-tcl-tk/po/Makefile.am index 876ab3b..be780c6 100644 --- a/gettext-tools/examples/hello-tcl-tk/po/Makefile.am +++ b/gettext-tools/examples/hello-tcl-tk/po/Makefile.am @@ -113,13 +113,24 @@ $(DOMAIN).pot-update: $(POTFILES_DEPS) remove-potcdate.sed else \ msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ fi; \ - $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ - --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ - --copyright-holder='$(COPYRIGHT_HOLDER)' \ - --package-name="$${package_gnu}$(PACKAGE)" \ - --package-version='$(VERSION)' \ - --msgid-bugs-address="$$msgid_bugs_address" \ - $(POTFILES) + case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \ + $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ + --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ + --copyright-holder='$(COPYRIGHT_HOLDER)' \ + --msgid-bugs-address="$$msgid_bugs_address" \ + $(POTFILES) \ + ;; \ + *) \ + $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ + --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ + --copyright-holder='$(COPYRIGHT_HOLDER)' \ + --package-name="$${package_gnu}$(PACKAGE)" \ + --package-version='$(VERSION)' \ + --msgid-bugs-address="$$msgid_bugs_address" \ + $(POTFILES) \ + ;; \ + esac test ! -f $(DOMAIN).po || { \ if test -f $(srcdir)/$(DOMAIN).pot; then \ sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ |