diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-09-10 14:49:05 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-09-10 14:49:05 (GMT) |
commit | 41b20b59794227f2843cf032b0c300f97ccfdec0 (patch) | |
tree | ade66dd05057e98300f073f5c215dbd80e469602 /Utilities | |
parent | f2ac53bb10889ea27c511634512414bb31cfb4ea (diff) | |
download | CMake-41b20b59794227f2843cf032b0c300f97ccfdec0.zip CMake-41b20b59794227f2843cf032b0c300f97ccfdec0.tar.gz CMake-41b20b59794227f2843cf032b0c300f97ccfdec0.tar.bz2 |
ENH: add test that builds a nightly windows cmake binary
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/Release/README | 2 | ||||
-rw-r--r-- | Utilities/Release/create-cmake-release.cmake | 6 | ||||
-rw-r--r-- | Utilities/Release/upload_release.cmake | 11 |
3 files changed, 14 insertions, 5 deletions
diff --git a/Utilities/Release/README b/Utilities/Release/README index 51b2e08..9c664db 100644 --- a/Utilities/Release/README +++ b/Utilities/Release/README @@ -18,6 +18,8 @@ cmake -DCMAKE_VERSION=CMake-2-4-7 -P ../create-cmake-release.cmake create-cmake-release.cmake: script to run to create release sh script +To add or remove machines this file should be edited. + Cygwin -> directory that contains cpack cygwin package files used in CMakeCPack.cmake) diff --git a/Utilities/Release/create-cmake-release.cmake b/Utilities/Release/create-cmake-release.cmake index 574e662..a39f49f 100644 --- a/Utilities/Release/create-cmake-release.cmake +++ b/Utilities/Release/create-cmake-release.cmake @@ -6,13 +6,13 @@ set(RELEASE_SCRIPTS dashmacmini2_release.cmake # Mac Darwin universal dashsun1_release.cmake # SunOS destiny_release.cmake # HPUX - magrathea_release.cmake # Linux + magrathea_release.cmake # Linux dashsgi1_release.cmake # IRIX dashsgi1_release64.cmake # IRIX 64 vogon_release.cmake # Windows vogon_cygwin.cmake # Cygwin -# r36n11_aix_release.cmake # AIX 5.3 - r15n65_aix_release.cmake # AIX 5.2 + r36n11_aix_release.cmake # AIX 5.3 +# r15n65_aix_release.cmake # AIX 5.2 ) file(WRITE create-${CMAKE_VERSION}.sh "#!/bin/sh") diff --git a/Utilities/Release/upload_release.cmake b/Utilities/Release/upload_release.cmake index 4b9917a..7424f82 100644 --- a/Utilities/Release/upload_release.cmake +++ b/Utilities/Release/upload_release.cmake @@ -1,17 +1,24 @@ set(PROJECT_PREFIX cmake-) -set(VERSION 2.4) +if(NOT VERSION) + set(VERSION 2.4) +endif(NOT VERSION) file(GLOB FILES ${CMAKE_CURRENT_SOURCE_DIR} "${PROJECT_PREFIX}*") message("${FILES}") set(UPLOAD_LOC "kitware@www.cmake.org:/projects/FTP/pub/cmake/v${VERSION}") +set(count 0) foreach(file ${FILES}) if(NOT IS_DIRECTORY ${file}) - message("upload ${file}") + message("upload ${file} ${UPLOAD_LOC}") execute_process(COMMAND scp ${file} ${UPLOAD_LOC} RESULT_VARIABLE result) + math(EXPR count "${count} + 1") 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) +if(${count} EQUAL 0) + message(FATAL_ERROR "Error no files uploaded.") +endif(${count} EQUAL 0) |