summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-07-07 06:55:10 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-07-07 06:55:10 +0800
commiteb71067d5ad5c1d8a63d8303dc06c94faae8d1dd (patch)
treefaf1f004b776669b47e5c48ab3c6863c3a9afe91 /CMakeLists.txt
parent480735d288a990fe5485372b7493b9fb6daa7cca (diff)
downloadmobilebling-eb71067d5ad5c1d8a63d8303dc06c94faae8d1dd.tar.gz
mobilebling-eb71067d5ad5c1d8a63d8303dc06c94faae8d1dd.tar.bz2
Add a proper set of a release targets in the CMake buildsystem for all compiz
projects to use make release-prep: generates NEWS ChangeLog and AUTHORS file make distcheck: generates a tarball make release-signoff: signs the tarball using the key in RELEASE_KEY and if in a git repository, creates tags and branches for that
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt13
1 files changed, 6 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 81ddcb3..8b605c8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,13 +14,10 @@ if (NOT CMAKE_BUILD_TYPE)
set (CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type (Debug/Release/RelWithDebInfo/MinSizeRe)" FORCE)
endif (NOT CMAKE_BUILD_TYPE)
-# compiz package version number
-# An odd micro number indicates in-progress development.
-# An even micro number indicates a released version.
-set (COMPIZ_VERSION_MAJOR 0)
-set (COMPIZ_VERSION_MINOR 9)
-set (COMPIZ_VERSION_MICRO 5)
-set (VERSION ${COMPIZ_VERSION_MAJOR}.${COMPIZ_VERSION_MINOR}.${COMPIZ_VERSION_MICRO})
+file (READ ${CMAKE_SOURCE_DIR}/VERSION COMPIZ_RELEASE_VERSION LIMIT 12 OFFSET 0)
+string (STRIP ${COMPIZ_RELEASE_VERSION} COMPIZ_RELEASE_VERSION)
+
+set (VERSION ${COMPIZ_RELEASE_VERSION})
set (DECOR_INTERFACE_VERSION 20110504)
@@ -122,6 +119,8 @@ compiz_package_generation ("Compiz")
compiz_add_uninstall ()
compiz_add_git_dist ()
compiz_add_distcheck ()
+compiz_add_release ()
+compiz_add_release_signoff ()
_print_configure_results ()