mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-29 10:39:47 +01:00
Fetch the subversion revision info automatically if possible.
This commit is contained in:
parent
23d1ea81ea
commit
8ac4e57cdf
@ -5,9 +5,18 @@ set(CLEMENTINE_VERSION_MAJOR 0)
|
||||
set(CLEMENTINE_VERSION_MINOR 5)
|
||||
set(CLEMENTINE_VERSION_PATCH 3)
|
||||
|
||||
set(BUILDBOT_REVISION $ENV{BUILDBOT_REVISION})
|
||||
include(FindSubversion)
|
||||
|
||||
find_package(Subversion)
|
||||
if(SUBVERSION_FOUND)
|
||||
Subversion_WC_INFO(${PROJECT_SOURCE_DIR} clementine)
|
||||
set(BUILDBOT_REVISION ${clementine_WC_REVISION})
|
||||
else(SUBVERSION_FOUND)
|
||||
set(BUILDBOT_REVISION $ENV{BUILDBOT_REVISION})
|
||||
endif(SUBVERSION_FOUND)
|
||||
|
||||
if(BUILDBOT_REVISION)
|
||||
set(CLEMENTINE_VERSION_STRING "${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR} - buildbot r${BUILDBOT_REVISION}") # Displayed in GUIs
|
||||
set(CLEMENTINE_VERSION_STRING "${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR} r${BUILDBOT_REVISION}") # Displayed in GUIs
|
||||
set(CLEMENTINE_VERSION_SHORT_STRING "${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR}r${BUILDBOT_REVISION}") # Used in filenames
|
||||
set(CLEMENTINE_VERSION ${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR}.90.r${BUILDBOT_REVISION})
|
||||
set(CLEMENTINE_DEB_VERSION ${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR}.90~r${BUILDBOT_REVISION}~${DEB_DIST})
|
||||
|
Loading…
x
Reference in New Issue
Block a user