Changeset - r27408:6a3f27731b4b
[Not reviewed]
master
0 2 0
Rubidium - 13 months ago 2023-05-21 06:33:04
rubidium@openttd.org
Cleanup: version of strgen/settingsgen was always $Revision$, so remove it
2 files changed with 2 insertions and 14 deletions:
0 comments (0 inline, 0 general)
src/settingsgen/settingsgen.cpp
Show inline comments
 
@@ -400,7 +400,6 @@ static bool CompareFiles(const char *n1,
 

	
 
/** Options of settingsgen. */
 
static const OptionData _opts[] = {
 
	  GETOPT_NOVAL(     'v', "--version"),
 
	  GETOPT_NOVAL(     'h', "--help"),
 
	GETOPT_GENERAL('h', '?', nullptr, ODF_NO_VALUE),
 
	  GETOPT_VALUE(     'o', "--output"),
 
@@ -455,15 +454,10 @@ int CDECL main(int argc, char *argv[])
 
		if (i == -1) break;
 

	
 
		switch (i) {
 
			case 'v':
 
				fmt::print("$Revision$\n");
 
				return 0;
 

	
 
			case 'h':
 
				fmt::print("settingsgen - $Revision$\n"
 
				fmt::print("settingsgen\n"
 
						"Usage: settingsgen [options] ini-file...\n"
 
						"with options:\n"
 
						"   -v, --version           Print version information and exit\n"
 
						"   -h, -?, --help          Print this help message and exit\n"
 
						"   -b FILE, --before FILE  Copy FILE before all settings\n"
 
						"   -a FILE, --after FILE   Copy FILE after all settings\n"
src/strgen/strgen.cpp
Show inline comments
 
@@ -397,7 +397,6 @@ static inline char *replace_pathsep(char
 

	
 
/** Options of strgen. */
 
static const OptionData _opts[] = {
 
	  GETOPT_NOVAL(     'v',  "--version"),
 
	GETOPT_GENERAL('C', '\0', "-export-commands", ODF_NO_VALUE),
 
	GETOPT_GENERAL('L', '\0', "-export-plurals",  ODF_NO_VALUE),
 
	GETOPT_GENERAL('P', '\0', "-export-pragmas",  ODF_NO_VALUE),
 
@@ -422,10 +421,6 @@ int CDECL main(int argc, char *argv[])
 
		if (i == -1) break;
 

	
 
		switch (i) {
 
			case 'v':
 
				fmt::print("$Revision$\n");
 
				return 0;
 

	
 
			case 'C':
 
				fmt::print("args\tflags\tcommand\treplacement\n");
 
				for (const CmdStruct *cs = _cmd_structs; cs < endof(_cmd_structs); cs++) {
 
@@ -468,8 +463,7 @@ int CDECL main(int argc, char *argv[])
 

	
 
			case 'h':
 
				fmt::print(
 
					"strgen - $Revision$\n"
 
					" -v | --version    print version information and exit\n"
 
					"strgen\n"
 
					" -t | --todo       replace any untranslated strings with '<TODO>'\n"
 
					" -w | --warning    print a warning for any untranslated strings\n"
 
					" -h | -? | --help  print this help message and exit\n"
0 comments (0 inline, 0 general)