|
|
@ -27,8 +27,12 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
// Add version information for @c what and @c ident
|
|
|
|
// Add version information for @c what and @c ident
|
|
|
|
const std::string MRW_IDENT("$Id: " PACKAGE_NAME "-" PACKAGEPACKAGE_VERSION " $"); |
|
|
|
#if defined(PACKAGE_NAME) && defined(PACKAGE_VERSION) |
|
|
|
const std::string MRW_WHAT("#(@)" PACKAGE_NAME "-" PACKAGEPACKAGE_VERSION); |
|
|
|
const std::string MRW_IDENT("$Id: " PACKAGE_NAME "-" PACKAGE_VERSION " $"); |
|
|
|
|
|
|
|
const std::string MRW_WHAT("#(@)" PACKAGE_NAME "-" PACKAGE_VERSION); |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
# warning pass -DPACKAGE_NAME=name -DPACKAGE_VERSION=version for ident/what |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
namespace mrw { |
|
|
|
namespace mrw { |
|
|
|
/// Cool and easy evaluation of commandline arguments in C++11.
|
|
|
|
/// Cool and easy evaluation of commandline arguments in C++11.
|
|
|
@ -340,11 +344,11 @@ namespace mrw { |
|
|
|
} |
|
|
|
} |
|
|
|
/// @return version information
|
|
|
|
/// @return version information
|
|
|
|
std::string version_text() { |
|
|
|
std::string version_text() { |
|
|
|
# ifdef PACKAGEPACKAGE_VERSION |
|
|
|
# ifdef PACKAGE_VERSION |
|
|
|
# ifdef PACKAGE_NAME |
|
|
|
# ifdef PACKAGE_NAME |
|
|
|
std::string v(": " PACKAGE_NAME "-" PACKAGEPACKAGE_VERSION); |
|
|
|
std::string v(": " PACKAGE_NAME "-" PACKAGE_VERSION); |
|
|
|
# else |
|
|
|
# else |
|
|
|
std::string v("-" PACKAGEPACKAGE_VERSION); |
|
|
|
std::string v("-" PACKAGE_VERSION); |
|
|
|
# endif |
|
|
|
# endif |
|
|
|
# else |
|
|
|
# else |
|
|
|
# ifdef PACKAGE_NAME |
|
|
|
# ifdef PACKAGE_NAME |
|
|
|