Commit e8565090 authored by David Cole's avatar David Cole Committed by Kitware Robot

Merge topic 'release-script-fixes'

214589b1 Add ability to run as a ctest -S script also
parents bed44c2c 214589b1
set(PROJECT_PREFIX cmake-)
set(CTEST_RUN_CURRENT_SCRIPT 0)
if(NOT DEFINED PROJECT_PREFIX)
set(PROJECT_PREFIX cmake-)
endif()
if(NOT VERSION)
set(VERSION 2.8)
endif()
......@@ -18,11 +21,18 @@ foreach(file ${FILES})
message("upload ${file} ${UPLOAD_LOC}")
execute_process(COMMAND
scp ${file} ${UPLOAD_LOC}
RESULT_VARIABLE result)
math(EXPR count "${count} + 1")
RESULT_VARIABLE result)
if("${result}" GREATER 0)
message(FATAL_ERROR "failed to upload file to ${UPLOAD_LOC}")
endif()
# Pause to give each upload a distinct (to the nearest second)
# time stamp
if(COMMAND ctest_sleep)
ctest_sleep(2)
endif()
math(EXPR count "${count} + 1")
endif()
endforeach(file)
if(${count} EQUAL 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment