ENH: seems to be working

This commit is contained in:
Bill Hoffman 2006-05-09 14:14:47 -04:00
parent 4f75fca38f
commit 37baeda3df
2 changed files with 10 additions and 16 deletions

View File

@ -3,13 +3,13 @@ if(NOT DEFINED CMAKE_VERSION)
endif(NOT DEFINED CMAKE_VERSION) endif(NOT DEFINED CMAKE_VERSION)
set(RELEASE_SCRIPTS set(RELEASE_SCRIPTS
# dashmacmini2_release.cmake # Mac Darwin universal dashmacmini2_release.cmake # Mac Darwin universal
# dashsun1_release.cmake # SunOS dashsun1_release.cmake # SunOS
destiny_release.cmake # HPUX destiny_release.cmake # HPUX
# hythloth_release.cmake # Linux hythloth_release.cmake # Linux
# muse_release.cmake # IRIX muse_release.cmake # IRIX
# muse_release64.cmake # IRIX 64 muse_release64.cmake # IRIX 64
# v60n177_aix_release.cmake # AIX v60n177_aix_release.cmake # AIX
) )
file(WRITE create-${CMAKE_VERSION}.sh "#!/bin/sh") file(WRITE create-${CMAKE_VERSION}.sh "#!/bin/sh")

View File

@ -68,17 +68,11 @@ set(CMAKE_BACKWARDS_COMPATIBILITY 2.4)
# create the script specific for the given host # create the script specific for the given host
set(SCRIPT_FILE release_cmake-${SCRIPT_NAME}.sh) set(SCRIPT_FILE release_cmake-${SCRIPT_NAME}.sh)
configure_file(${SCRIPT_PATH}/release_cmake.sh.in ${SCRIPT_FILE} @ONLY) 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 # run the script by starting a shell on the remote machine
remote_command("Run release script" "${RUN_SHELL} ${SCRIPT_FILE}") # 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("copy the .gz file back from the machine")
message("scp ${HOST}:${CMAKE_RELEASE_DIRECTORY}/${CMAKE_VERSION}-build/*.gz .") message("scp ${HOST}:${CMAKE_RELEASE_DIRECTORY}/${CMAKE_VERSION}-build/*.gz .")