2010-05-03 15:58:41 +02:00
|
|
|
# Change this file when releasing a new version.
|
|
|
|
|
2010-09-19 22:44:31 +02:00
|
|
|
# Version numbers.
|
2010-05-03 15:58:41 +02:00
|
|
|
set(CLEMENTINE_VERSION_MAJOR 0)
|
2010-09-19 22:44:31 +02:00
|
|
|
set(CLEMENTINE_VERSION_MINOR 5)
|
2010-09-29 20:51:40 +02:00
|
|
|
set(CLEMENTINE_VERSION_PATCH 3)
|
2010-06-07 22:23:28 +02:00
|
|
|
|
2010-11-25 16:26:26 +01:00
|
|
|
include(FindSubversion)
|
|
|
|
|
2010-11-25 18:14:11 +01:00
|
|
|
set(BUILDBOT_REVISION $ENV{BUILDBOT_REVISION})
|
|
|
|
if(NOT BUILDBOT_REVISION)
|
|
|
|
find_package(Subversion)
|
|
|
|
if(SUBVERSION_FOUND)
|
|
|
|
Subversion_WC_INFO(${PROJECT_SOURCE_DIR} clementine)
|
|
|
|
set(BUILDBOT_REVISION ${clementine_WC_REVISION})
|
|
|
|
endif(SUBVERSION_FOUND)
|
|
|
|
endif(NOT BUILDBOT_REVISION)
|
2010-11-25 16:26:26 +01:00
|
|
|
|
2010-06-07 22:23:28 +02:00
|
|
|
if(BUILDBOT_REVISION)
|
2010-11-25 16:26:26 +01:00
|
|
|
set(CLEMENTINE_VERSION_STRING "${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR} r${BUILDBOT_REVISION}") # Displayed in GUIs
|
2010-09-19 22:44:31 +02:00
|
|
|
set(CLEMENTINE_VERSION_SHORT_STRING "${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR}r${BUILDBOT_REVISION}") # Used in filenames
|
2010-09-05 13:48:56 +02:00
|
|
|
set(CLEMENTINE_VERSION ${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR}.90.r${BUILDBOT_REVISION})
|
2010-09-18 20:29:40 +02:00
|
|
|
set(CLEMENTINE_DEB_VERSION ${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR}.90~r${BUILDBOT_REVISION}~${DEB_DIST})
|
2010-06-07 22:23:28 +02:00
|
|
|
else(BUILDBOT_REVISION)
|
2010-07-24 15:01:46 +02:00
|
|
|
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)
|
2010-09-19 12:35:24 +02:00
|
|
|
set(CLEMENTINE_DEB_VERSION ${CLEMENTINE_VERSION}~${DEB_DIST})
|
2010-09-29 20:51:40 +02:00
|
|
|
set(CLEMENTINE_VERSION_STRING "${CLEMENTINE_VERSION}")
|
|
|
|
set(CLEMENTINE_VERSION_SHORT_STRING "${CLEMENTINE_VERSION}")
|
2010-07-24 15:01:46 +02:00
|
|
|
endif(BUILDBOT_REVISION)
|
2010-05-03 15:58:41 +02:00
|
|
|
|