From: Uwe Hermann Date: Sat, 18 Jul 2015 15:46:04 +0000 (+0200) Subject: Append "-git" to the version string. X-Git-Tag: pulseview-0.3.0~177 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=793208c83a8bde80be063a7bcb159ee7ffae2b9f;p=pulseview.git Append "-git" to the version string. This avoids confusion with the released tarballs. This fixes bug #609. --- 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 */