utilbox: add support for PROGNAME in each utility
This commit is contained in:
parent
7ff7fc637e
commit
ee070ed226
|
@ -32,6 +32,7 @@ includes() {
|
||||||
$CAT << EOF
|
$CAT << EOF
|
||||||
|
|
||||||
/* $BASENAME */
|
/* $BASENAME */
|
||||||
|
#define PROGNAME "$PROGRAM"
|
||||||
#define main _${PROGRAM}_main
|
#define main _${PROGRAM}_main
|
||||||
#define _usage _${PROGRAM}_usage
|
#define _usage _${PROGRAM}_usage
|
||||||
#define _Prefs _${PROGRAM}_Prefs
|
#define _Prefs _${PROGRAM}_Prefs
|
||||||
|
@ -45,6 +46,7 @@ includes() {
|
||||||
#undef Prefs
|
#undef Prefs
|
||||||
#undef _prefs_parse
|
#undef _prefs_parse
|
||||||
#undef _${PROGRAM}
|
#undef _${PROGRAM}
|
||||||
|
#undef PROGNAME
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user