summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-07 16:06:28 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-03-07 16:06:28 (GMT)
commitc85c455c9d1a9fecc9d3715f47204838caf2a1d6 (patch)
treed6e51c0c4fd779fd8942d3b2c2850ef93dafa99b
parent00da6ac784dbd5cb7d5b316e262700b22117b2b1 (diff)
parent25fb430e96ecd33d437ad833f58fce509de6dc48 (diff)
downloadCMake-c85c455c9d1a9fecc9d3715f47204838caf2a1d6.zip
CMake-c85c455c9d1a9fecc9d3715f47204838caf2a1d6.tar.gz
CMake-c85c455c9d1a9fecc9d3715f47204838caf2a1d6.tar.bz2
Merge topic 'fix-nightly-upload'
25fb430e Utilities/Release: Fix nightly build upload
-rw-r--r--Tests/CMakeLists.txt2
-rw-r--r--Utilities/Release/upload_release.cmake7
2 files changed, 4 insertions, 5 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 854b239..ea04911 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -575,7 +575,7 @@ if(BUILD_TESTING)
file(WRITE "${_TEST_DIR}/nightly-cmake.sh"
"cd ${_TEST_DIR}
${CMake_BINARY_DIR}/bin/cmake -DCMAKE_CREATE_VERSION=nightly -P ${CMake_SOURCE_DIR}/Utilities/Release/${script}
-${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/Release/upload_release.cmake
+${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release/upload_release.cmake
")
add_test(${name} /bin/sh ${_TEST_DIR}/nightly-cmake.sh)
if(COMMAND SET_TESTS_PROPERTIES AND COMMAND GET_TEST_PROPERTY)
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})