diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-05-05 19:51:13 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-05-05 19:51:13 (GMT) |
commit | bf9de32f41ef07655e5ae65b5072a281198fe6e6 (patch) | |
tree | 1239eb895b7578c8eda21cc7f8e27e5d87fbbd8f /Utilities/Release/release_cmake.cmake | |
parent | e0924bbb16209f196e970db2f9830467c3e147a6 (diff) | |
download | CMake-bf9de32f41ef07655e5ae65b5072a281198fe6e6.zip CMake-bf9de32f41ef07655e5ae65b5072a281198fe6e6.tar.gz CMake-bf9de32f41ef07655e5ae65b5072a281198fe6e6.tar.bz2 |
ENH: make release directory a variable
Diffstat (limited to 'Utilities/Release/release_cmake.cmake')
-rw-r--r-- | Utilities/Release/release_cmake.cmake | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Utilities/Release/release_cmake.cmake b/Utilities/Release/release_cmake.cmake index 17d71b3..1b7b138 100644 --- a/Utilities/Release/release_cmake.cmake +++ b/Utilities/Release/release_cmake.cmake @@ -1,6 +1,9 @@ set(CVSROOT ":pserver:anonymous@www.cmake.org:/cvsroot/CMake") get_filename_component(SCRIPT_PATH "${CMAKE_CURRENT_LIST_FILE}" PATH) +if(NOT DEFINED CMAKE_RELEASE_DIRECTORY) + set(CMAKE_RELEASE_DIRECTORY "~/CMakeReleaseDirectory") +endif(NOT DEFINED CMAKE_RELEASE_DIRECTORY) if(NOT DEFINED RUN_SHELL) set(RUN_SHELL "/bin/sh") endif(NOT DEFINED RUN_SHELL) @@ -66,10 +69,10 @@ remote_command("Copy release_cmake-${HOST}.sh to sever" remote_command("Run release script" "${RUN_SHELL} release_cmake-${HOST}.sh") message("copy the .gz file back from the machine") -execute_process(COMMAND scp ${HOST}:CMakeReleaseDirectory/${CMAKE_VERSION}-build/*.gz . +execute_process(COMMAND scp ${HOST}:${CMAKE_RELEASE_DIRECTORY}/${CMAKE_VERSION}-build/*.gz . RESULT_VARIABLE result) message("copy the ${INSTALLER_SUFFIX} file back from the machine") -execute_process(COMMAND scp ${HOST}:CMakeReleaseDirectory/${CMAKE_VERSION}-build/${INSTALLER_SUFFIX} . +execute_process(COMMAND scp ${HOST}:${CMAKE_RELEASE_DIRECTORY}/${CMAKE_VERSION}-build/${INSTALLER_SUFFIX} . RESULT_VARIABLE result) |