summaryrefslogtreecommitdiffstats
path: root/Utilities/Release/release_cmake.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-09-21 14:32:42 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2010-09-21 14:32:42 (GMT)
commit39d99c24583574c542e1cd74b8a92a5c21d3454d (patch)
tree696afe63405de4e63acf309ab78a3c7d24dbc063 /Utilities/Release/release_cmake.cmake
parent753cbf83568492c159c21baeffb9fbea5c661e91 (diff)
parent4a67481ed6045e8aebb2b5e169fcb55c953432be (diff)
downloadCMake-39d99c24583574c542e1cd74b8a92a5c21d3454d.zip
CMake-39d99c24583574c542e1cd74b8a92a5c21d3454d.tar.gz
CMake-39d99c24583574c542e1cd74b8a92a5c21d3454d.tar.bz2
Merge topic 'fix_release_tags'
4a67481 Update release scripts. 7d148d8 Fix the name of the variable being tested. 297be5b add next as an orgin based branch, and not a tag. 187976b Fix release scripts to be able to build releases from tags.
Diffstat (limited to 'Utilities/Release/release_cmake.cmake')
-rw-r--r--Utilities/Release/release_cmake.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Utilities/Release/release_cmake.cmake b/Utilities/Release/release_cmake.cmake
index 6fd1372..3a35ec3 100644
--- a/Utilities/Release/release_cmake.cmake
+++ b/Utilities/Release/release_cmake.cmake
@@ -34,7 +34,11 @@ if(NOT DEFINED CVS_COMMAND)
set(CVS_COMMAND cvs)
endif(NOT DEFINED CVS_COMMAND)
-set(GIT_BRANCH ${CMAKE_CREATE_VERSION})
+if(${CMAKE_CREATE_VERSION} MATCHES "^(release|maint|next)$")
+ set(GIT_BRANCH origin/${CMAKE_CREATE_VERSION})
+else()
+ set(GIT_BRANCH ${CMAKE_CREATE_VERSION})
+endif()
set( CMAKE_CHECKOUT "${CVS_COMMAND} -q -d ${CVSROOT} co -d ${CMAKE_CREATE_VERSION} ${CMAKE_CREATE_VERSION}")