|
@@ -109,8 +109,15 @@ void printUsage(const char* programName) {
|
|
|
<< std::endl;
|
|
<< std::endl;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// Injected by service/CMakeLists.txt from the top-level VERSION file. The
|
|
|
|
|
+// fallback reports "unknown" rather than a plausible-looking literal: an
|
|
|
|
|
+// honest "unknown" is debuggable, a stale version string is not.
|
|
|
|
|
+#ifndef SMARTBOTIC_DB_VERSION_STRING
|
|
|
|
|
+#define SMARTBOTIC_DB_VERSION_STRING "unknown"
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
void printVersion() {
|
|
void printVersion() {
|
|
|
- std::cout << "smartbotic-database version 1.0.0\n"
|
|
|
|
|
|
|
+ std::cout << "smartbotic-database version " << SMARTBOTIC_DB_VERSION_STRING << "\n"
|
|
|
<< "Smartbotic Database Service\n"
|
|
<< "Smartbotic Database Service\n"
|
|
|
<< std::endl;
|
|
<< std::endl;
|
|
|
}
|
|
}
|