Mercurial > hg > octave-nkf > gnulib-hg
changeset 17724:8526f2f0b117
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 | 9edabe80a556 |
children | d65323023063 |
files | top/maint.mk |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/top/maint.mk +++ b/top/maint.mk @@ -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' \