1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-18 04:19:55 +01:00

Add a cmake option to specify the .deb distribution

This commit is contained in:
David Sansome 2010-07-24 13:01:46 +00:00
parent 0c793689ae
commit aba01f63c7
3 changed files with 11 additions and 9 deletions

View File

@ -3,21 +3,21 @@
# Version numbers. For m.n rc, use m.(n-1).99
set(CLEMENTINE_VERSION_MAJOR 0)
set(CLEMENTINE_VERSION_MINOR 4)
set(CLEMENTINE_VERSION_PATCH 0)
set(BUILDBOT_REVISION $ENV{BUILDBOT_REVISION})
if(BUILDBOT_REVISION)
set(CLEMENTINE_VERSION_PATCH 90)
set(CLEMENTINE_VERSION_STRING "0.4 - buildbot r${BUILDBOT_REVISION}") # Displayed in GUIs
set(CLEMENTINE_VERSION_SHORT_STRING "0.4r${BUILDBOT_REVISION}") # Used in filenames
set(CLEMENTINE_VERSION ${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR}.90~r${BUILDBOT_REVISION})
else(BUILDBOT_REVISION)
set(CLEMENTINE_VERSION_PATCH 0)
set(CLEMENTINE_VERSION_STRING "0.4")
set(CLEMENTINE_VERSION_SHORT_STRING "0.4")
if (CLEMENTINE_VERSION_PATCH)
set(CLEMENTINE_VERSION ${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR}.${CLEMENTINE_VERSION_PATCH})
else (CLEMENTINE_VERSION_PATCH)
set(CLEMENTINE_VERSION ${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR})
endif (CLEMENTINE_VERSION_PATCH)
endif(BUILDBOT_REVISION)
if (CLEMENTINE_VERSION_PATCH)
set(CLEMENTINE_VERSION ${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR}.${CLEMENTINE_VERSION_PATCH})
else (CLEMENTINE_VERSION_PATCH)
set(CLEMENTINE_VERSION ${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR})
endif (CLEMENTINE_VERSION_PATCH)

View File

@ -1,5 +1,7 @@
execute_process(COMMAND date "+%a, %-d %b %Y %H:%M:%S %z"
OUTPUT_VARIABLE DEB_DATE OUTPUT_STRIP_TRAILING_WHITESPACE)
set(DEB_DIST "unstable" CACHE STRING "Distribution to set in the .deb changelog")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/changelog.in
${CMAKE_CURRENT_SOURCE_DIR}/changelog)

2
debian/changelog.in vendored
View File

@ -1,4 +1,4 @@
clementine (${CLEMENTINE_VERSION}) unstable; urgency=low
clementine (${CLEMENTINE_VERSION}) ${DEB_DIST}; urgency=low
* Version ${CLEMENTINE_VERSION_STRING}