Mercurial > gnulib
diff top/maint.mk @ 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 | fe063c25c0ce |
children | 78d646edb95c |
line wrap: on
line diff
--- 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.