summaryrefslogtreecommitdiffstats
path: root/Utilities/Release
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-05-05 14:36:47 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-05-05 14:36:47 (GMT)
commit25a85c05851a4f97fcc7aedcbd10eda98404e3f3 (patch)
treee48ab8ace6bacc0b931e6c77eb4e804baee26bde /Utilities/Release
parenta3c86013d5f0cb570c801097a868da8b4e6a2d4b (diff)
downloadCMake-25a85c05851a4f97fcc7aedcbd10eda98404e3f3.zip
CMake-25a85c05851a4f97fcc7aedcbd10eda98404e3f3.tar.gz
CMake-25a85c05851a4f97fcc7aedcbd10eda98404e3f3.tar.bz2
ENH: create script is working
Diffstat (limited to 'Utilities/Release')
-rw-r--r--Utilities/Release/release_cmake.cmake8
1 files changed, 2 insertions, 6 deletions
diff --git a/Utilities/Release/release_cmake.cmake b/Utilities/Release/release_cmake.cmake
index 822e6e5..66fff95 100644
--- a/Utilities/Release/release_cmake.cmake
+++ b/Utilities/Release/release_cmake.cmake
@@ -33,11 +33,7 @@ message("Creating CMake release ${CMAKE_VERSION} on ${HOST} with parallel = ${PR
# define a macro to run a remote command
macro(remote_command comment command)
message("${comment}")
- if(${ARGC} GREATER 2)
- execute_process(COMMAND ssh ${HOST} ${EXTRA_HOP} ${command} RESULT_VARIABLE result INPUT_FILE ${ARGV2})
- else(${ARGC} GREATER 2)
- execute_process(COMMAND ssh ${HOST} ${EXTRA_HOP} ${command} RESULT_VARIABLE result)
- endif(${ARGC} GREATER 2)
+ execute_process(COMMAND ssh ${HOST} ${EXTRA_HOP} ${command} RESULT_VARIABLE result)
if(${result} GREATER 0)
message(FATAL_ERROR "Error running command: ${command}, return value = ${result}")
endif(${result} GREATER 0)
@@ -46,7 +42,7 @@ endmacro(remote_command)
set(CMAKE_BACKWARDS_COMPATIBILITY 2.4)
configure_file(${SCRIPT_PATH}/release_cmake.sh.in release_cmake-${HOST}.sh)
file(READ release_cmake-${HOST}.sh RELEASE_CMAKE_CONTENTS)
-remote_command("Copy release_cmake.sh to sever"
+remote_command("Copy release_cmake-${HOST}.sh to sever"
"echo '${RELEASE_CMAKE_CONTENTS}' > release_cmake-${HOST}.sh")
remote_command("Run release script" "sh release_cmake-${HOST}.sh")