summaryrefslogtreecommitdiff
path: root/Utilities
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2010-03-05 18:26:43 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2010-03-05 18:26:43 -0500
commit2e16fee3c82a746e190ccaafca2b2258eaf9aef6 (patch)
treed41070d7b76ed1ce2b2ed25cc2780ad3c04b40e6 /Utilities
parent0922d4f3f26fa9f087c7d29a98f00e488c7630a6 (diff)
downloadcmake-2e16fee3c82a746e190ccaafca2b2258eaf9aef6.tar.gz
Fix upload to work with git branch name master.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/Release/upload_release.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/Utilities/Release/upload_release.cmake b/Utilities/Release/upload_release.cmake
index 211bc3eb1c..b57853cd00 100644
--- a/Utilities/Release/upload_release.cmake
+++ b/Utilities/Release/upload_release.cmake
@@ -1,7 +1,10 @@
set(PROJECT_PREFIX cmake-)
if(NOT VERSION)
set(VERSION 2.8)
-endif(NOT VERSION)
+endif()
+if("${VERSION}" MATCHES "master")
+ set(VERSION CVS)
+endif()
file(GLOB FILES ${CMAKE_CURRENT_SOURCE_DIR} "${PROJECT_PREFIX}*")
message("${FILES}")
set(UPLOAD_LOC
@@ -21,4 +24,4 @@ foreach(file ${FILES})
endforeach(file)
if(${count} EQUAL 0)
message(FATAL_ERROR "Error no files uploaded.")
-endif(${count} EQUAL 0)
+endif()