changeset 37404:69ae2f1791fd

maint.mk: give projects more flexibilty in set_prog_name arguments * 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.
author Pádraig Brady <P@draigBrady.com>
date Sat, 12 Jul 2014 15:21:12 +0100
parents 2e1298feb41c
children e61e2cad060b
files top/maint.mk
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/top/maint.mk	Fri Jul 11 12:19:34 2014 -0700
+++ b/top/maint.mk	Sat Jul 12 15:21:12 2014 +0100
@@ -711,7 +711,7 @@
 # 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'		\