1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-08-21 15:50:50 +00:00

Print git revision in --version.

This commit is contained in:
King_DuckZ 2015-12-12 20:27:31 +00:00
parent 861ea2c809
commit bef901c56c
5 changed files with 168 additions and 2 deletions

View file

@ -68,6 +68,7 @@ namespace dinlib {
void print_commandline_version (std::ostream& parStream) {
parStream << g_version_string << '\n';
parStream << "Rev " << VERSION_GIT << '\n';
}
bool manage_common_commandline (std::ostream& parStream, const char* parAction, const char* parUsage, const boost::program_options::variables_map& parVarMap, const boost::program_options::options_description& parOpts) {

View file

@ -23,6 +23,7 @@
#define VERSION_MINOR @PROJECT_VERSION_MINOR@
#define VERSION_BETA @PROJECT_VERSION_BETA@
#define VERSION_PATCH @PROJECT_VERSION_PATCH@
#define VERSION_GIT "@PROJECT_VERSION_GIT@"
#define CONFIG_FILE_PATH "@DINDEXER_CONFIG_FILE@"
#define ACTIONS_SEARCH_PATH "@ACTIONS_PATH@"
#define ACTION_PREFIX "@bare_name@-"