summaryrefslogtreecommitdiffstats
path: root/Utilities/Release/release_cmake.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-05-05 14:30:26 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-05-05 14:30:26 (GMT)
commit1a7a6ccc34c36891043c7380c60ca86618a68bad (patch)
tree5f34eeed76b7c20ff4e26cf49afd544a813bc293 /Utilities/Release/release_cmake.cmake
parent523d9ebeed37fe256afb292de2f20f093eb873d1 (diff)
downloadCMake-1a7a6ccc34c36891043c7380c60ca86618a68bad.zip
CMake-1a7a6ccc34c36891043c7380c60ca86618a68bad.tar.gz
CMake-1a7a6ccc34c36891043c7380c60ca86618a68bad.tar.bz2
ENH: create script is working
Diffstat (limited to 'Utilities/Release/release_cmake.cmake')
-rw-r--r--Utilities/Release/release_cmake.cmake14
1 files changed, 6 insertions, 8 deletions
diff --git a/Utilities/Release/release_cmake.cmake b/Utilities/Release/release_cmake.cmake
index f4eb243..398c867 100644
--- a/Utilities/Release/release_cmake.cmake
+++ b/Utilities/Release/release_cmake.cmake
@@ -44,14 +44,12 @@ macro(remote_command comment command)
endmacro(remote_command)
set(CMAKE_BACKWARDS_COMPATIBILITY 2.4)
-configure_file(${SCRIPT_PATH}/release_cmake.sh.in release_cmake.sh)
-execute_process(COMMAND
- scp release_cmake.sh ${HOST}:release_cmake.sh
- RESULT_VARIABLE result)
-if(${result} GREATER 0)
- message(FATAL_ERROR "Error scp release_cmake.sh to ${HOST}:release_cmake.sh")
-endif(${result} GREATER 0)
-remote_command("Run release script" "sh release_cmake.sh")
+configure_file(${SCRIPT_PATH}/release_cmake.sh.in release_cmake-${HOST}.sh)
+file(READ release_cmake.sh RELEASE_CMAKE_CONTENTS)
+remote_command("Copy release_cmake.sh to sever"
+ "echo '${RELEASE_CMAKE_CONTENTS}' > release_cmake-${HOST}.sh")
+
+remote_command("Run release script" "sh release_cmake-${HOST}.sh")
message("copy the .gz file back from the machine")
execute_process(COMMAND scp ${HOST}:CMakeReleaseDirectory/${CMAKE_VERSION}-build/*.gz .