diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-16 16:47:07 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-16 16:47:07 (GMT) |
commit | 71c934f02959b8593bc4241e61f3bcf78cceefd0 (patch) | |
tree | b968757fa2b58a0a4793b9460170fed2f59d317d /Utilities/Release/upload_release.cmake | |
parent | e593fbf6eee74e33f721742ac0d632a3b7f72084 (diff) | |
download | CMake-71c934f02959b8593bc4241e61f3bcf78cceefd0.zip CMake-71c934f02959b8593bc4241e61f3bcf78cceefd0.tar.gz CMake-71c934f02959b8593bc4241e61f3bcf78cceefd0.tar.bz2 |
ENH: update for release
Diffstat (limited to 'Utilities/Release/upload_release.cmake')
-rw-r--r-- | Utilities/Release/upload_release.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Utilities/Release/upload_release.cmake b/Utilities/Release/upload_release.cmake new file mode 100644 index 0000000..4b9917a --- /dev/null +++ b/Utilities/Release/upload_release.cmake @@ -0,0 +1,17 @@ +set(PROJECT_PREFIX cmake-) +set(VERSION 2.4) +file(GLOB FILES ${CMAKE_CURRENT_SOURCE_DIR} "${PROJECT_PREFIX}*") +message("${FILES}") +set(UPLOAD_LOC + "kitware@www.cmake.org:/projects/FTP/pub/cmake/v${VERSION}") +foreach(file ${FILES}) + if(NOT IS_DIRECTORY ${file}) + message("upload ${file}") + execute_process(COMMAND + scp ${file} ${UPLOAD_LOC} + RESULT_VARIABLE result) + if("${result}" GREATER 0) + message(FATAL_ERROR "failed to upload file to ${UPLOAD_LOC}") + endif("${result}" GREATER 0) + endif(NOT IS_DIRECTORY ${file}) +endforeach(file) |