Add pre-release info to --version output
Bump version to 3.1.1-alpha.1
This commit is contained in:
parent
80022bf04a
commit
af7e7cdd8f
3 changed files with 6 additions and 2 deletions
|
|
@ -8,7 +8,8 @@ PROJECT(ledger)
|
|||
|
||||
set(Ledger_VERSION_MAJOR 3)
|
||||
set(Ledger_VERSION_MINOR 1)
|
||||
set(Ledger_VERSION_PATCH 0)
|
||||
set(Ledger_VERSION_PATCH 1)
|
||||
set(Ledger_VERSION_PRERELEASE "-alpha.1")
|
||||
set(Ledger_VERSION_DATE 20141005)
|
||||
|
||||
enable_testing()
|
||||
|
|
@ -270,7 +271,7 @@ include (InstallRequiredSystemLibraries)
|
|||
set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE.md")
|
||||
set (CPACK_PACKAGE_VERSION_MAJOR "${Ledger_VERSION_MAJOR}")
|
||||
set (CPACK_PACKAGE_VERSION_MINOR "${Ledger_VERSION_MINOR}")
|
||||
set (CPACK_PACKAGE_VERSION_PATCH "${Ledger_VERSION_PATCH}")
|
||||
set (CPACK_PACKAGE_VERSION_PATCH "${Ledger_VERSION_PATCH}${Ledger_VERSION_PRERELEASE}")
|
||||
|
||||
set (CPACK_GENERATOR "TBZ2")
|
||||
set (CPACK_SOURCE_GENERATOR "TBZ2")
|
||||
|
|
|
|||
|
|
@ -123,6 +123,8 @@ public:
|
|||
out <<
|
||||
"Ledger " << Ledger_VERSION_MAJOR << '.' << Ledger_VERSION_MINOR << '.'
|
||||
<< Ledger_VERSION_PATCH;
|
||||
if (Ledger_VERSION_PRERELEASE != 0)
|
||||
out << Ledger_VERSION_PRERELEASE;
|
||||
if (Ledger_VERSION_DATE != 0)
|
||||
out << '-' << Ledger_VERSION_DATE;
|
||||
out << _(", the command-line accounting tool");
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@
|
|||
#define Ledger_VERSION_MAJOR @Ledger_VERSION_MAJOR@
|
||||
#define Ledger_VERSION_MINOR @Ledger_VERSION_MINOR@
|
||||
#define Ledger_VERSION_PATCH @Ledger_VERSION_PATCH@
|
||||
#define Ledger_VERSION_PRERELEASE "@Ledger_VERSION_PRERELEASE@"
|
||||
#define Ledger_VERSION_DATE @Ledger_VERSION_DATE@
|
||||
|
||||
#define HAVE_EDIT @HAVE_EDIT@
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue