Mercurial > hg > octave-nkf > gnulib-hg
changeset 13853:2f3dbd409322
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 | 299859ce1b75 |
children | 6419b9b1ea92 |
files | ChangeLog top/maint.mk |
diffstat | 2 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- a/top/maint.mk +++ b/top/maint.mk @@ -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.