Add version strings for 'what' command (or 'version' on AROS)

This commit is contained in:
Brian Cox 2016-06-09 23:33:22 -07:00
parent 7d304be407
commit c7b83c88d8
8 changed files with 38 additions and 5 deletions

View File

@ -42,6 +42,12 @@
#include "stdsiggen.h" #include "stdsiggen.h"
#include "siggenstrings.h" #include "siggenstrings.h"
#ifdef __AROS__
# define VERSION_PREFIX "$VER: "
#else
# define VERSION_PREFIX "@(#)"
#endif
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// String Table // String Table
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -62,6 +68,7 @@ TSS_BeginStringtable( cSiggen )
_T("\n") _T("\n")
), ),
TSS_StringEntry( siggen::STR_SIGGEN_VERSION, _T("siggen: Display signature function values. \n")), TSS_StringEntry( siggen::STR_SIGGEN_VERSION, _T("siggen: Display signature function values. \n")),
TSS_StringEntry( siggen::STR_EMBEDDED_VERSION, _T(VERSION_PREFIX "siggen " PACKAGE_VERSION)),
TSS_StringEntry( siggen::STR_ERR_OPEN_FAILED, _T("File could not be opened") ), TSS_StringEntry( siggen::STR_ERR_OPEN_FAILED, _T("File could not be opened") ),
TSS_StringEntry( siggen::STR_ERR_NO_FILE, _T("File does not exist") ), TSS_StringEntry( siggen::STR_ERR_NO_FILE, _T("File does not exist") ),
TSS_StringEntry( siggen::STR_SIGGEN_NOT_REG_FILE, _T(" is not a regular file; ignoring.") ) TSS_StringEntry( siggen::STR_SIGGEN_NOT_REG_FILE, _T(" is not a regular file; ignoring.") )

View File

@ -46,6 +46,7 @@ TSS_BeginStringIds( siggen )
STR_SIGGEN_USAGE, STR_SIGGEN_USAGE,
STR_SIGGEN_VERSION, STR_SIGGEN_VERSION,
STR_EMBEDDED_VERSION,
STR_SIGGEN_NOT_REG_FILE, STR_SIGGEN_NOT_REG_FILE,
STR_ERR_NO_FILE, STR_ERR_NO_FILE,
STR_ERR_OPEN_FAILED STR_ERR_OPEN_FAILED

View File

@ -47,9 +47,17 @@
#define MAPI_OPTION #define MAPI_OPTION
#endif #endif
#ifdef __AROS__
# define VERSION_PREFIX "$VER: "
#else
# define VERSION_PREFIX "@(#)"
#endif
TSS_BeginStringtable( cTripwire ) TSS_BeginStringtable( cTripwire )
TSS_StringEntry( tripwire::STR_TRIPWIRE_VERSION, _T("tripwire: File integrity assessment application.\n")), TSS_StringEntry( tripwire::STR_TRIPWIRE_VERSION, _T("tripwire: File integrity assessment application.\n")),
TSS_StringEntry( tripwire::STR_EMBEDDED_VERSION, _T(VERSION_PREFIX "tripwire " PACKAGE_VERSION)),
TSS_StringEntry( tripwire::STR_TRIPWIRE_USAGE_SUMMARY, TSS_StringEntry( tripwire::STR_TRIPWIRE_USAGE_SUMMARY,
_T("Usage:\n") _T("Usage:\n")

View File

@ -40,6 +40,7 @@
TSS_BeginStringIds( tripwire ) TSS_BeginStringIds( tripwire )
STR_TRIPWIRE_VERSION, STR_TRIPWIRE_VERSION,
STR_EMBEDDED_VERSION,
STR_TRIPWIRE_HELP_INIT, STR_TRIPWIRE_HELP_INIT,
STR_TRIPWIRE_HELP_CHECK, STR_TRIPWIRE_HELP_CHECK,
STR_TRIPWIRE_HELP_UPDATE, STR_TRIPWIRE_HELP_UPDATE,

View File

@ -39,9 +39,16 @@
#include "twadmin.h" #include "twadmin.h"
#include "twadminstrings.h" #include "twadminstrings.h"
#ifdef __AROS__
# define VERSION_PREFIX "$VER: "
#else
# define VERSION_PREFIX "@(#)"
#endif
TSS_BeginStringtable( cTWAdmin ) TSS_BeginStringtable( cTWAdmin )
TSS_StringEntry( twadmin::STR_TWADMIN_VERSION, _T("twadmin: Tripwire administrative tool.\n") ), TSS_StringEntry( twadmin::STR_TWADMIN_VERSION, _T("twadmin: Tripwire administrative tool.\n") ),
TSS_StringEntry( twadmin::STR_EMBEDDED_VERSION, _T(VERSION_PREFIX "twadmin " PACKAGE_VERSION)),
TSS_StringEntry( twadmin::STR_TWADMIN_USAGE_SUMMARY, TSS_StringEntry( twadmin::STR_TWADMIN_USAGE_SUMMARY,
_T("Usage:\n") _T("Usage:\n")

View File

@ -45,6 +45,7 @@
TSS_BeginStringIds( twadmin ) TSS_BeginStringIds( twadmin )
STR_TWADMIN_VERSION, STR_TWADMIN_VERSION,
STR_EMBEDDED_VERSION,
STR_TWADMIN_USAGE_SUMMARY, STR_TWADMIN_USAGE_SUMMARY,
STR_TWADMIN_HELP_CREATE_CFGFILE, STR_TWADMIN_HELP_CREATE_CFGFILE,
STR_TWADMIN_HELP_PRINT_CFGFILE, STR_TWADMIN_HELP_PRINT_CFGFILE,

View File

@ -39,6 +39,12 @@
#include "twprint.h" #include "twprint.h"
#include "twprintstrings.h" #include "twprintstrings.h"
#ifdef __AROS__
# define VERSION_PREFIX "$VER: "
#else
# define VERSION_PREFIX "@(#)"
#endif
TSS_BeginStringtable( cTWPrint ) TSS_BeginStringtable( cTWPrint )
TSS_StringEntry( twprint::STR_TWPRINT_USAGE_SUMMARY, TSS_StringEntry( twprint::STR_TWPRINT_USAGE_SUMMARY,
@ -82,7 +88,8 @@ TSS_BeginStringtable( cTWPrint )
_T("\n") _T("\n")
), ),
TSS_StringEntry( twprint::STR_TWPRINT_VERSION, _T("twprint: Tripwire database and report printer.\n") ), TSS_StringEntry( twprint::STR_TWPRINT_VERSION, _T("twprint: Tripwire database and report printer.\n") ),
TSS_StringEntry( twprint::STR_EMBEDDED_VERSION, _T(VERSION_PREFIX "twprint " PACKAGE_VERSION)),
TSS_EndStringtable( cTWPrint ) TSS_EndStringtable( cTWPrint )

View File

@ -47,7 +47,8 @@ TSS_BeginStringIds( twprint )
STR_TWPRINT_USAGE_SUMMARY, STR_TWPRINT_USAGE_SUMMARY,
STR_TWPRINT_HELP_PRINT_REPORT, STR_TWPRINT_HELP_PRINT_REPORT,
STR_TWPRINT_HELP_PRINT_DATABASE, STR_TWPRINT_HELP_PRINT_DATABASE,
STR_TWPRINT_VERSION STR_TWPRINT_VERSION,
STR_EMBEDDED_VERSION
TSS_EndStringIds( twprint ) TSS_EndStringIds( twprint )