summaryrefslogtreecommitdiffstats
path: root/gettext-tools/examples/hello-java
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-10-18 15:22:00 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:15:19 +0200
commit5fa250bf3af0026839c386440f908f0784792814 (patch)
treea0ae61a0df58447bc7cfcebdd3736cee95511a28 /gettext-tools/examples/hello-java
parent9b794b26308de53916cd904c80c7839721109be9 (diff)
downloadexternal_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-java')
-rw-r--r--gettext-tools/examples/hello-java/po/Makefile.am25
1 files changed, 18 insertions, 7 deletions
diff --git a/gettext-tools/examples/hello-java/po/Makefile.am b/gettext-tools/examples/hello-java/po/Makefile.am
index 6cb4c4b..d4049f2 100644
--- a/gettext-tools/examples/hello-java/po/Makefile.am
+++ b/gettext-tools/examples/hello-java/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 && \