summaryrefslogtreecommitdiffstats
path: root/gettext-tools/examples/hello-gawk
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2005-02-07 12:18:30 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:12:09 +0200
commit306cad46e7a9cf9b58e21e6711cf334a31f75ce6 (patch)
tree71c92faa3acc80f2f076332b8801bf57cf6740f3 /gettext-tools/examples/hello-gawk
parent4502193d0407adba5a7de38fd913f0b0305dc248 (diff)
downloadexternal_gettext-306cad46e7a9cf9b58e21e6711cf334a31f75ce6.zip
external_gettext-306cad46e7a9cf9b58e21e6711cf334a31f75ce6.tar.gz
external_gettext-306cad46e7a9cf9b58e21e6711cf334a31f75ce6.tar.bz2
Use PACKAGE_BUGREPORT if MSGID_BUGS_ADDRESS is empty.
Diffstat (limited to 'gettext-tools/examples/hello-gawk')
-rw-r--r--gettext-tools/examples/hello-gawk/po/Makefile.am9
1 files changed, 7 insertions, 2 deletions
diff --git a/gettext-tools/examples/hello-gawk/po/Makefile.am b/gettext-tools/examples/hello-gawk/po/Makefile.am
index 51c3708..00c19ee 100644
--- a/gettext-tools/examples/hello-gawk/po/Makefile.am
+++ b/gettext-tools/examples/hello-gawk/po/Makefile.am
@@ -1,5 +1,5 @@
# Example for use of GNU gettext.
-# Copyright (C) 2003-2004 Free Software Foundation, Inc.
+# Copyright (C) 2003-2005 Free Software Foundation, Inc.
# This file is in the public domain.
#
# Makefile configuration - processed by automake.
@@ -111,10 +111,15 @@ 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_DEPS) remove-potcdate.sed
+ if test -n '$(MSGID_BUGS_ADDRESS)'; then \
+ msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
+ else \
+ msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
+ fi; \
$(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
--add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
--copyright-holder='$(COPYRIGHT_HOLDER)' \
- --msgid-bugs-address='$(MSGID_BUGS_ADDRESS)' \
+ --msgid-bugs-address="$$msgid_bugs_address" \
$(POTFILES)
test ! -f $(DOMAIN).po || { \
if test -f $(srcdir)/$(DOMAIN).pot; then \