mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-18 12:28:31 +01:00
Add a cmake option to specify the .deb distribution
This commit is contained in:
parent
0c793689ae
commit
aba01f63c7
@ -3,21 +3,21 @@
|
|||||||
# Version numbers. For m.n rc, use m.(n-1).99
|
# Version numbers. For m.n rc, use m.(n-1).99
|
||||||
set(CLEMENTINE_VERSION_MAJOR 0)
|
set(CLEMENTINE_VERSION_MAJOR 0)
|
||||||
set(CLEMENTINE_VERSION_MINOR 4)
|
set(CLEMENTINE_VERSION_MINOR 4)
|
||||||
|
set(CLEMENTINE_VERSION_PATCH 0)
|
||||||
|
|
||||||
set(BUILDBOT_REVISION $ENV{BUILDBOT_REVISION})
|
set(BUILDBOT_REVISION $ENV{BUILDBOT_REVISION})
|
||||||
if(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_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_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)
|
else(BUILDBOT_REVISION)
|
||||||
set(CLEMENTINE_VERSION_PATCH 0)
|
|
||||||
set(CLEMENTINE_VERSION_STRING "0.4")
|
set(CLEMENTINE_VERSION_STRING "0.4")
|
||||||
set(CLEMENTINE_VERSION_SHORT_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)
|
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)
|
|
||||||
|
2
debian/CMakeLists.txt
vendored
2
debian/CMakeLists.txt
vendored
@ -1,5 +1,7 @@
|
|||||||
execute_process(COMMAND date "+%a, %-d %b %Y %H:%M:%S %z"
|
execute_process(COMMAND date "+%a, %-d %b %Y %H:%M:%S %z"
|
||||||
OUTPUT_VARIABLE DEB_DATE OUTPUT_STRIP_TRAILING_WHITESPACE)
|
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
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/changelog.in
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/changelog)
|
${CMAKE_CURRENT_SOURCE_DIR}/changelog)
|
||||||
|
2
debian/changelog.in
vendored
2
debian/changelog.in
vendored
@ -1,4 +1,4 @@
|
|||||||
clementine (${CLEMENTINE_VERSION}) unstable; urgency=low
|
clementine (${CLEMENTINE_VERSION}) ${DEB_DIST}; urgency=low
|
||||||
|
|
||||||
* Version ${CLEMENTINE_VERSION_STRING}
|
* Version ${CLEMENTINE_VERSION_STRING}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user