Commit 37baeda3 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: seems to be working

parent 4f75fca3
......@@ -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")
......
......@@ -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 .")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment