sgsnemu: Fix gengetopt package name
gengetopt by default picks the program name from PACKAGE (autotools), which is openggsn and is obviously wrong in case of sgsnemu. After this patch, "sgsnemu --help" no longer shows "openggsn" but "sgsnemu" at the top of the help text. Change-Id: Ifabc2435a503ef71aa5a002ca46833f329068b37
This commit is contained in:
parent
078bc097fc
commit
6045efb642
|
@ -27,8 +27,7 @@
|
||||||
|
|
||||||
const char *gengetopt_args_info_purpose = "";
|
const char *gengetopt_args_info_purpose = "";
|
||||||
|
|
||||||
const char *gengetopt_args_info_usage =
|
const char *gengetopt_args_info_usage = "Usage: sgsnemu [OPTIONS]...";
|
||||||
"Usage: " CMDLINE_PARSER_PACKAGE " [OPTIONS]...";
|
|
||||||
|
|
||||||
const char *gengetopt_args_info_versiontext = "";
|
const char *gengetopt_args_info_versiontext = "";
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,8 @@
|
||||||
# sed -i -e 's/int qose1_arg;/unsigned long long int qose1_arg;/' cmdline.h
|
# sed -i -e 's/int qose1_arg;/unsigned long long int qose1_arg;/' cmdline.h
|
||||||
# to generate cmdline.c and cmdline.h
|
# to generate cmdline.c and cmdline.h
|
||||||
|
|
||||||
|
package "sgsnemu"
|
||||||
|
|
||||||
option "debug" d "Run in debug mode" flag off
|
option "debug" d "Run in debug mode" flag off
|
||||||
|
|
||||||
option "conf" c "Read configuration file" string no
|
option "conf" c "Read configuration file" string no
|
||||||
|
|
|
@ -21,16 +21,12 @@ extern "C" {
|
||||||
|
|
||||||
#ifndef CMDLINE_PARSER_PACKAGE
|
#ifndef CMDLINE_PARSER_PACKAGE
|
||||||
/** @brief the program name (used for printing errors) */
|
/** @brief the program name (used for printing errors) */
|
||||||
#define CMDLINE_PARSER_PACKAGE PACKAGE
|
#define CMDLINE_PARSER_PACKAGE "sgsnemu"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CMDLINE_PARSER_PACKAGE_NAME
|
#ifndef CMDLINE_PARSER_PACKAGE_NAME
|
||||||
/** @brief the complete program name (used for help and version) */
|
/** @brief the complete program name (used for help and version) */
|
||||||
#ifdef PACKAGE_NAME
|
#define CMDLINE_PARSER_PACKAGE_NAME "sgsnemu"
|
||||||
#define CMDLINE_PARSER_PACKAGE_NAME PACKAGE_NAME
|
|
||||||
#else
|
|
||||||
#define CMDLINE_PARSER_PACKAGE_NAME PACKAGE
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CMDLINE_PARSER_VERSION
|
#ifndef CMDLINE_PARSER_VERSION
|
||||||
|
|
Reference in New Issue