summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-11-11 13:22:13 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-11-11 13:22:13 (GMT)
commit6cc0d839c258e6253bc79a5accc9dc86878a6776 (patch)
tree3677cbf6b1d7dc8a48154a12565dfdead5f65ba2
parentc27c750fc4303c6294aef9a85b1357eaed33dcd3 (diff)
downloadkolab-utils-6cc0d839c258e6253bc79a5accc9dc86878a6776.tar.gz
Development is going towards 0.4
Define the version number in the CMakeLists.txt although it's not yet used. --version anyone?
-rw-r--r--CMakeLists.txt19
-rwxr-xr-xautogen.sh4
2 files changed, 20 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 19ec430..1df6bc8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-project (KolabUtilsFormat)
+project (KolabUtils)
cmake_minimum_required(VERSION 2.6)
@@ -6,6 +6,23 @@ if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 7)
cmake_policy(SET CMP0013 NEW)
endif()
+# Versioning
+# x.y.z scheme
+# Development versions are only x.y
+#
+# i.e.
+# 0.1 (0.1 development version towards 0.1.0)
+# 0.1.0 (first release)
+# 0.1.1 (patch release for 0.1.0)
+# 0.2 (0.2 development version towards 0.2.0)
+set(Kolabutils_VERSION_MAJOR 0)
+set(Kolabutils_VERSION_MINOR 4)
+# Enable the full x.y.z version only for release versions
+# set(Kolabutils_VERSION_PATCH 0)
+# set(Kolabutils_VERSION ${Kolabutils_VERSION_MAJOR}.${Kolabutils_VERSION_MINOR}.${Kolabutils_VERSION_PATCH} )
+set(Kolabutils_VERSION ${Kolabutils_VERSION_MAJOR}.${Kolabutils_VERSION_MINOR} )
+set(Kolabutils_VERSION_STRING ${CMAKE_PROJECT_NAME}-${Kolabutils_VERSION})
+
option( USE_LIBCALENDARING "Use libcalendaring" FALSE )
set(CMAKE_MODULE_PATH ${KolabUtilsFormat_SOURCE_DIR}/cmake/modules)
diff --git a/autogen.sh b/autogen.sh
index 1b48767..795bd21 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -71,7 +71,7 @@ fi
cd ..
-git archive --prefix=kolab-utils-3.0.5/ HEAD | gzip -c > kolab-utils-3.0.5.tar.gz
+git archive --prefix=kolab-utils-0.4/ HEAD | gzip -c > kolab-utils-0.4.tar.gz
-cp kolab-utils-3.0.5.tar.gz `rpm --eval='%{_sourcedir}'`
+cp kolab-utils-0.4.tar.gz `rpm --eval='%{_sourcedir}'`