Migrate to latest project structure

This commit is contained in:
2025-01-08 12:45:52 +01:00
parent 95e33043f9
commit d0734fbafa
11 changed files with 464 additions and 110 deletions

19
src/version.cpp Normal file
View File

@@ -0,0 +1,19 @@
#include "version.hpp"
#include <sstream>
std::string tagger_version() {
#include "version.inc"
#include "commit.inc"
std::ostringstream oss;
oss << "tagger version " << version;
#ifdef DEBUG
oss << " DEBUG";
#endif
oss << '\n';
if (commit[0] != '\0') {
oss << "build " << commit << ", ";
}
oss << __DATE__ << ", " << __TIME__ << '\n';
oss << "(c) Bob Polis, all rights reserved";
return oss.str();
}