summaryrefslogtreecommitdiffstats
path: root/Utilities/Release/upload_release.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-10-16 16:47:07 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-10-16 16:47:07 (GMT)
commit71c934f02959b8593bc4241e61f3bcf78cceefd0 (patch)
treeb968757fa2b58a0a4793b9460170fed2f59d317d /Utilities/Release/upload_release.cmake
parente593fbf6eee74e33f721742ac0d632a3b7f72084 (diff)
downloadCMake-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.cmake17
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)