summaryrefslogtreecommitdiffstats
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
parent4f75fca38f0e7962337270579f48d20f70165220 (diff)
downloadCMake-37baeda3df2a802793bec28cbcbe23d7b505d3dc.zip
CMake-37baeda3df2a802793bec28cbcbe23d7b505d3dc.tar.gz
CMake-37baeda3df2a802793bec28cbcbe23d7b505d3dc.tar.bz2
ENH: seems to be working
-rw-r--r--Utilities/Release/create-cmake-release.cmake12
-rw-r--r--Utilities/Release/release_cmake.cmake14
2 files changed, 10 insertions, 16 deletions
diff --git a/Utilities/Release/create-cmake-release.cmake b/Utilities/Release/create-cmake-release.cmake
index 9dae660..3651ee2 100644
--- a/Utilities/Release/create-cmake-release.cmake
+++ b/Utilities/Release/create-cmake-release.cmake
@@ -3,13 +3,13 @@ if(NOT DEFINED CMAKE_VERSION)
endif(NOT DEFINED CMAKE_VERSION)
set(RELEASE_SCRIPTS
-# dashmacmini2_release.cmake # Mac Darwin universal
-# dashsun1_release.cmake # SunOS
+ dashmacmini2_release.cmake # Mac Darwin universal
+ dashsun1_release.cmake # SunOS
destiny_release.cmake # HPUX
-# hythloth_release.cmake # Linux
-# muse_release.cmake # IRIX
-# muse_release64.cmake # IRIX 64
-# v60n177_aix_release.cmake # AIX
+ hythloth_release.cmake # Linux
+ muse_release.cmake # IRIX
+ muse_release64.cmake # IRIX 64
+ v60n177_aix_release.cmake # AIX
)
file(WRITE create-${CMAKE_VERSION}.sh "#!/bin/sh")
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 .")