]> Savannah Git Hosting - gnulib.git/commitdiff
maint.mk: give projects more flexibilty in set_prog_name arguments
authorPádraig Brady <P@draigBrady.com>
Sat, 12 Jul 2014 14:21:12 +0000 (15:21 +0100)
committerPádraig Brady <P@draigBrady.com>
Sat, 12 Jul 2014 14:22:28 +0000 (15:22 +0100)
* top/maint.mk (sc_program_name): Allow arguments other than argv[0]
to be passed to set_program_name().  This is needed by the multicall
coreutils program for example.

top/maint.mk

index 0cc769c535035126624db2c18b7c301b96ef1552..e5a37829216500ae76d197e7c4e1c73221e18f46 100644 (file)
@@ -711,7 +711,7 @@ sc_changelog:
 # Ensure that each .c file containing a "main" function also
 # calls set_program_name.
 sc_program_name:
-       @require='set_program_name *\(m?argv\[0\]\);'                   \
+       @require='set_program_name *\(.*\);'                            \
        in_vc_files='\.c$$'                                             \
        containing='\<main *('                                          \
        halt='the above files do not call set_program_name'             \