summaryrefslogtreecommitdiffstats
path: root/Utilities/Release/release_cmake.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-05-09 21:18:46 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-05-09 21:18:46 (GMT)
commitf3023d5a38f454ae1d25654f3f188991f83eb175 (patch)
tree3e410ce545b4bdfc827a92988c75ec22b881e6c1 /Utilities/Release/release_cmake.cmake
parent37baeda3df2a802793bec28cbcbe23d7b505d3dc (diff)
downloadCMake-f3023d5a38f454ae1d25654f3f188991f83eb175.zip
CMake-f3023d5a38f454ae1d25654f3f188991f83eb175.tar.gz
CMake-f3023d5a38f454ae1d25654f3f188991f83eb175.tar.bz2
ENH: works
Diffstat (limited to 'Utilities/Release/release_cmake.cmake')
-rw-r--r--Utilities/Release/release_cmake.cmake11
1 files changed, 7 insertions, 4 deletions
diff --git a/Utilities/Release/release_cmake.cmake b/Utilities/Release/release_cmake.cmake
index 65791f9..2080946 100644
--- a/Utilities/Release/release_cmake.cmake
+++ b/Utilities/Release/release_cmake.cmake
@@ -7,6 +7,9 @@ endif(DEFINED EXTRA_COPY)
if(NOT DEFINED CMAKE_RELEASE_DIRECTORY)
set(CMAKE_RELEASE_DIRECTORY "~/CMakeReleaseDirectory")
endif(NOT DEFINED CMAKE_RELEASE_DIRECTORY)
+if(NOT DEFINED FINAL_PATH )
+ set(FINAL_PATH ${CMAKE_RELEASE_DIRECTORY}/${CMAKE_VERSION}-build)
+endif(NOT DEFINED FINAL_PATH )
if(NOT DEFINED SCRIPT_NAME)
set(SCRIPT_NAME "${HOST}")
endif(NOT DEFINED SCRIPT_NAME)
@@ -75,12 +78,12 @@ 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 .")
-execute_process(COMMAND scp ${HOST}:${CMAKE_RELEASE_DIRECTORY}/${CMAKE_VERSION}-build/*.gz .
+message("scp ${HOST}:${FINAL_PATH}/*.gz .")
+execute_process(COMMAND scp ${HOST}:${FINAL_PATH}/*.gz .
RESULT_VARIABLE result)
message("copy the ${INSTALLER_SUFFIX} file back from the machine")
-message("scp ${HOST}:${CMAKE_RELEASE_DIRECTORY}/${CMAKE_VERSION}-build/${INSTALLER_SUFFIX} .")
-execute_process(COMMAND scp ${HOST}:${CMAKE_RELEASE_DIRECTORY}/${CMAKE_VERSION}-build/${INSTALLER_SUFFIX} .
+message("scp ${HOST}:${FINAL_PATH}/${INSTALLER_SUFFIX} .")
+execute_process(COMMAND scp ${HOST}:${FINAL_PATH}/${INSTALLER_SUFFIX} .
RESULT_VARIABLE result)