From affffc7d714bb3167f34c3741bad0d79f0e131b0 Mon Sep 17 00:00:00 2001 From: Oliver Blaser Date: Wed, 3 Mar 2021 11:43:37 +0100 Subject: [PATCH] pre-release 0.1.0 --- src/main.cpp | 13 ++++++++----- src/project.h | 4 +++- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index be6e832..38bd07e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,7 +1,7 @@ /*! \author Oliver Blaser -\date 02.03.2021 +\date 03.03.2021 \copyright GNU GPLv3 - Copyright (c) 2021 Oliver Blaser */ @@ -78,8 +78,13 @@ namespace void printVersion() { - cout << "potoroo " << PRJ_VERSION << endl; - cout << endl; + cout << "potoroo " << PRJ_VERSION ; + +#if PRJ_VERSION_PRERELEASE + cout << " " << sgr(SGRFGC_BRIGHT_MAGENTA) << "pre-release" << sgr(SGR_RESET); +#endif + + cout << endl<< endl; cout << "project page: " << endl; cout << endl; cout << "Copyright (c) 2021 Oliver Blaser." << endl; @@ -112,8 +117,6 @@ int main(int argc, char** argv) { int result = rcInit; - cout << " " << sgr(SGRFGC_BRIGHT_BLACK) << "pre-release " << PRJ_VERSION << sgr(SGR_RESET) << endl; - ArgList args = ArgList::parse(argc, argv); #if PRJ_DEBUG && 1 diff --git a/src/project.h b/src/project.h index 7cc9d6a..fa75cbf 100644 --- a/src/project.h +++ b/src/project.h @@ -1,7 +1,7 @@ /* \author Oliver Blaser -\date 01.03.2021 +\date 03.03.2021 \copyright GNU GPLv3 - Copyright (c) 2021 Oliver Blaser */ @@ -17,7 +17,9 @@ namespace project } + #define PRJ_VERSION (project::version) +#define PRJ_VERSION_PRERELEASE (1)