From 793208c83a8bde80be063a7bcb159ee7ffae2b9f Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 18 Jul 2015 17:46:04 +0200 Subject: [PATCH] Append "-git" to the version string. This avoids confusion with the released tarballs. This fixes bug #609. --- CMakeLists.txt | 5 +++-- config.h.in | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 049c955e..66e8ba15 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -125,8 +125,9 @@ set(PV_DESCRIPTION "A GUI for sigrok") set(PV_VERSION_MAJOR 0) set(PV_VERSION_MINOR 2) set(PV_VERSION_MICRO 0) +set(PV_VERSION_SUFFIX -git) set(PV_VERSION_STRING - ${PV_VERSION_MAJOR}.${PV_VERSION_MINOR}.${PV_VERSION_MICRO} + ${PV_VERSION_MAJOR}.${PV_VERSION_MINOR}.${PV_VERSION_MICRO}${PV_VERSION_SUFFIX} ) configure_file ( @@ -431,7 +432,7 @@ set(CPACK_PACKAGE_DESCRIPTION_FILE ${CMAKE_CURRENT_SOURCE_DIR}/README) set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_CURRENT_SOURCE_DIR}/COPYING) set(CPACK_SOURCE_IGNORE_FILES ${CMAKE_CURRENT_BINARY_DIR} ".gitignore" ".git") set(CPACK_SOURCE_PACKAGE_FILE_NAME - "${CMAKE_PROJECT_NAME}-${PV_VERSION_MAJOR}.${PV_VERSION_MINOR}.${PV_VERSION_MICRO}") + "${CMAKE_PROJECT_NAME}-${PV_VERSION_MAJOR}.${PV_VERSION_MINOR}.${PV_VERSION_MICRO}${PV_VERSION_SUFFIX}") set(CPACK_SOURCE_GENERATOR "TGZ") include(CPack) diff --git a/config.h.in b/config.h.in index aa6062df..8da6dafb 100644 --- a/config.h.in +++ b/config.h.in @@ -29,6 +29,7 @@ #define PV_VERSION_MAJOR @PV_VERSION_MAJOR@ #define PV_VERSION_MINOR @PV_VERSION_MINOR@ #define PV_VERSION_MICRO @PV_VERSION_MICRO@ +#define PV_VERSION_SUFFIX @PV_VERSION_SUFFIX@ #define PV_VERSION_STRING "@PV_VERSION_STRING@" /* Platform properties */ -- 2.30.2