From ee070ed226ff002c4a6a33128cbe19e65a2238d9 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 8 Dec 2020 14:17:49 +0100 Subject: [PATCH] utilbox: add support for PROGNAME in each utility --- tools/utils.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/utils.sh b/tools/utils.sh index 9ef926b..d732bc9 100755 --- a/tools/utils.sh +++ b/tools/utils.sh @@ -32,6 +32,7 @@ includes() { $CAT << EOF /* $BASENAME */ +#define PROGNAME "$PROGRAM" #define main _${PROGRAM}_main #define _usage _${PROGRAM}_usage #define _Prefs _${PROGRAM}_Prefs @@ -45,6 +46,7 @@ includes() { #undef Prefs #undef _prefs_parse #undef _${PROGRAM} +#undef PROGNAME EOF }