summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2010-11-11 17:20:02 -0700
committerEric Blake <eblake@redhat.com>2010-11-12 08:40:15 -0700
commitf09721b14db35e4dd22794da9f751deeb8343ba1 (patch)
tree77c2b30f3b7a7ff495b136b3be2a96bed8178616
parent2f2b6680291d8d766e51f3c1cc5e8078f8d285f0 (diff)
downloadgnulib-f09721b14db35e4dd22794da9f751deeb8343ba1.tar.gz
maintainer-makefile: check for i18n setup
* top/maint.mk (sc_bindtextdomain): Check for evidence that _() will likely work. Signed-off-by: Eric Blake <eblake@redhat.com>
-rw-r--r--ChangeLog6
-rw-r--r--top/maint.mk11
2 files changed, 16 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 077649a920..e348fe28a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-11-12 Eric Blake <eblake@redhat.com>
+
+ maintainer-makefile: check for i18n setup
+ * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
+ will likely work.
+
2010-11-12 Bruno Haible <bruno@clisp.org>
sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
diff --git a/top/maint.mk b/top/maint.mk
index 55aeb7b69b..181a96fa45 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -590,10 +590,19 @@ sc_changelog:
sc_program_name:
@require='set_program_name *\(m?argv\[0\]\);' \
in_vc_files='\.c$$' \
- containing='^main *(' \
+ containing='\<main *(' \
halt='the above files do not call set_program_name' \
$(_sc_search_regexp)
+# Ensure that each .c file containing a "main" function also
+# calls bindtextdomain.
+sc_bindtextdomain:
+ @require='bindtextdomain *\(' \
+ in_vc_files='\.c$$' \
+ containing='\<main *(' \
+ halt='the above files do not call bindtextdomain' \
+ $(_sc_search_regexp)
+
# Require that the final line of each test-lib.sh-using test be this one:
# Exit $fail
# Note: this test requires GNU grep's --label= option.