summaryrefslogtreecommitdiff
path: root/top/maint.mk
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2014-07-12 15:21:12 +0100
committerPádraig Brady <P@draigBrady.com>2014-07-12 15:22:28 +0100
commit4044ca9a9c317335c0f730e9417e57343029d3c4 (patch)
tree5f3bf420546f795c92c6eca36f0415ebaead3b43 /top/maint.mk
parentc4093fa1648a0d2385c58d75c3140def7dcdebdf (diff)
downloadgnulib-4044ca9a9c317335c0f730e9417e57343029d3c4.tar.gz
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.
Diffstat (limited to 'top/maint.mk')
-rw-r--r--top/maint.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/top/maint.mk b/top/maint.mk
index 0cc769c535..e5a3782921 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -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' \