Mercurial > gnulib
changeset 33544:cceae1c3ce28
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>
author | Eric Blake <eblake@redhat.com> |
---|---|
date | Thu, 11 Nov 2010 17:20:02 -0700 |
parents | 7f0771ef3d8f |
children | 58d4055a6eee |
files | ChangeLog top/maint.mk |
diffstat | 2 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Nov 12 15:17:27 2010 +0100 +++ b/ChangeLog Thu Nov 11 17:20:02 2010 -0700 @@ -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.
--- a/top/maint.mk Fri Nov 12 15:17:27 2010 +0100 +++ b/top/maint.mk Thu Nov 11 17:20:02 2010 -0700 @@ -590,10 +590,19 @@ 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.