summaryrefslogtreecommitdiffstats
path: root/Utilities/Release
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-06 14:31:26 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-06 14:32:04 (GMT)
commit25fb430e96ecd33d437ad833f58fce509de6dc48 (patch)
tree1155d97f3b0c90d0e91c8e1d5650eacd7ebe2014 /Utilities/Release
parent4d67891a73bb523a021cc420f457b507c4dcb1d0 (diff)
downloadCMake-25fb430e96ecd33d437ad833f58fce509de6dc48.zip
CMake-25fb430e96ecd33d437ad833f58fce509de6dc48.tar.gz
CMake-25fb430e96ecd33d437ad833f58fce509de6dc48.tar.bz2
Utilities/Release: Fix nightly build upload
Since commit 71b14dcb (Utilities/Release: Do not upload doc staging tarball, 2014-02-26) the prefix upload_release.cmake computes does not match any files when used with -DVERSION=master as has been done for the nightly binary builds. Since the version is not actually 'master' anyway, change the nightly binary upload logic to explicitly pass the destination directory. Do not pass any VERSION so the default is taken and matches the binaries.
Diffstat (limited to 'Utilities/Release')
-rw-r--r--Utilities/Release/upload_release.cmake7
1 files changed, 3 insertions, 4 deletions
diff --git a/Utilities/Release/upload_release.cmake b/Utilities/Release/upload_release.cmake
index 613d73d..5f4da8f 100644
--- a/Utilities/Release/upload_release.cmake
+++ b/Utilities/Release/upload_release.cmake
@@ -5,16 +5,15 @@ endif()
if(NOT DEFINED PROJECT_PREFIX)
set(PROJECT_PREFIX cmake-${VERSION})
endif()
-set(dir "v${VERSION}")
-if("${VERSION}" MATCHES "master")
- set(dir "dev")
+if(NOT DEFINED DIR)
+ set(DIR "v${VERSION}")
endif()
file(GLOB FILES ${CMAKE_CURRENT_SOURCE_DIR} "${PROJECT_PREFIX}*")
list(SORT FILES)
list(REVERSE FILES)
message("${FILES}")
set(UPLOAD_LOC
- "kitware@www.cmake.org:/projects/FTP/pub/cmake/${dir}")
+ "kitware@www.cmake.org:/projects/FTP/pub/cmake/${DIR}")
set(count 0)
foreach(file ${FILES})
if(NOT IS_DIRECTORY ${file})