summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2012-03-28 18:49:27 (GMT)
committerChristian Mollekopf <chrigi_1@fastmail.fm>2012-03-28 18:49:27 (GMT)
commitb4726e0baaf6ebf7082461fa9b88c0f9afd3c7ff (patch)
tree042b2ae40e2f4c4a6acc0f8335f55a43b2525340
parent8751d8f0d500713cb205770d52e65fbdef28c255 (diff)
downloadlibkolabxml-b4726e0baaf6ebf7082461fa9b88c0f9afd3c7ff.tar.gz
Fixed version number, possibility to make a snapshot of the current sourcetree
-rw-r--r--CMakeLists.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5f67c32..5445917 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,7 +15,7 @@ if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 7 AND
endif()
set (KOLABXML_VERSION_MAJOR 0)
-set (KOLABXML_VERSION_MINOR 3)
+set (KOLABXML_VERSION_MINOR 2)
set (KOLABXML_VERSION_RELEASE 0)
set (KOLABXML_VERSION "${KOLABXML_VERSION_MAJOR}.${KOLABXML_VERSION_MINOR}.${KOLABXML_VERSION_RELEASE}" )
set (KOLABXML_VERSION_STRING ${CMAKE_PROJECT_NAME}-${KOLABXML_VERSION})
@@ -158,9 +158,16 @@ else()
message("Qt libraries have not been found, not building tests")
endif()
-set(ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${KOLABXML_VERSION})
#make dist requires a tag with ${ARCHIVE_NAME} (e.g. libkolabxml-0.2.0)
+set(ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${KOLABXML_VERSION})
add_custom_target(dist
COMMAND git archive --prefix=${ARCHIVE_NAME}/ ${ARCHIVE_NAME}
| bzip2 > ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.bz2
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
+
+#snapshot of current development version
+set(SNAPSHOTARCHIVE_NAME "${CMAKE_PROJECT_NAME}-${KOLABXML_VERSION}-HEAD")
+add_custom_target(snapshot
+ COMMAND git archive --prefix=${SNAPSHOTARCHIVE_NAME}/ HEAD
+ | bzip2 > ${CMAKE_BINARY_DIR}/${SNAPSHOTARCHIVE_NAME}.tar.bz2
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})