utilbox: add support for PROGNAME in each utility

This commit is contained in:
Pierre Pronchery 2020-12-08 14:17:49 +01:00
parent 7ff7fc637e
commit ee070ed226

View File

@ -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
}