summaryrefslogtreecommitdiffstats
path: root/Utilities/Release/release_cmake.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-05-09 18:14:47 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-05-09 18:14:47 (GMT)
commit37baeda3df2a802793bec28cbcbe23d7b505d3dc (patch)
treeba3d9c9078a4a16ac45e47dda3062960c79c44c5 /Utilities/Release/release_cmake.cmake
parent4f75fca38f0e7962337270579f48d20f70165220 (diff)
downloadCMake-37baeda3df2a802793bec28cbcbe23d7b505d3dc.zip
CMake-37baeda3df2a802793bec28cbcbe23d7b505d3dc.tar.gz
CMake-37baeda3df2a802793bec28cbcbe23d7b505d3dc.tar.bz2
ENH: seems to be working
Diffstat (limited to 'Utilities/Release/release_cmake.cmake')
-rw-r--r--Utilities/Release/release_cmake.cmake14
1 files changed, 4 insertions, 10 deletions
diff --git a/Utilities/Release/release_cmake.cmake b/Utilities/Release/release_cmake.cmake
index bf2298f..65791f9 100644
--- a/Utilities/Release/release_cmake.cmake
+++ b/Utilities/Release/release_cmake.cmake
@@ -68,17 +68,11 @@ set(CMAKE_BACKWARDS_COMPATIBILITY 2.4)
# create the script specific for the given host
set(SCRIPT_FILE release_cmake-${SCRIPT_NAME}.sh)
configure_file(${SCRIPT_PATH}/release_cmake.sh.in ${SCRIPT_FILE} @ONLY)
-# remove any old version of the script
-remote_command("remove old ${SCRIPT_FILE} from server"
- "rm -f ${SCRIPT_FILE}")
-# copy the script to the remote host via cat with the
-# script as input for the execute_process this will translate
-# the file from dos to unix
-remote_command("Copy release_cmake-${HOST}.sh to sever"
- "cat > ${SCRIPT_FILE}" ${SCRIPT_FILE})
-# now run the script on the remote machine
-remote_command("Run release script" "${RUN_SHELL} ${SCRIPT_FILE}")
+# run the script by starting a shell on the remote machine
+# then using the script file as input to the shell
+remote_command("run release_cmake-${HOST}.sh on server"
+ "${RUN_SHELL}" ${SCRIPT_FILE})
message("copy the .gz file back from the machine")
message("scp ${HOST}:${CMAKE_RELEASE_DIRECTORY}/${CMAKE_VERSION}-build/*.gz .")