summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-05-05 17:10:49 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-05-05 17:10:49 (GMT)
commit77e894d8f4f0337590eb47744f2e9be8a567a118 (patch)
tree89414481462e20c17c91a091538b9b89e20c7abf /Utilities
parent7477aaa5e878fd6b6861b35e1472ce29aa5c00de (diff)
downloadCMake-77e894d8f4f0337590eb47744f2e9be8a567a118.zip
CMake-77e894d8f4f0337590eb47744f2e9be8a567a118.tar.gz
CMake-77e894d8f4f0337590eb47744f2e9be8a567a118.tar.bz2
ENH: move from tr to cat since it works from a windows machine and works on the AIX
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/Release/release_cmake.cmake12
1 files changed, 7 insertions, 5 deletions
diff --git a/Utilities/Release/release_cmake.cmake b/Utilities/Release/release_cmake.cmake
index f458cd8..17d71b3 100644
--- a/Utilities/Release/release_cmake.cmake
+++ b/Utilities/Release/release_cmake.cmake
@@ -48,17 +48,19 @@ macro(remote_command comment command)
endif(${result} GREATER 0)
endmacro(remote_command)
+# set this so configure file will work from script mode
set(CMAKE_BACKWARDS_COMPATIBILITY 2.4)
+# create the script specific for the given host
configure_file(${SCRIPT_PATH}/release_cmake.sh.in
release_cmake-${HOST}.sh @ONLY)
-file(READ release_cmake-${HOST}.sh RELEASE_CMAKE_CONTENTS)
+# remove any old version of the script
remote_command("remove old release_cmake-${HOST}.sh from server"
"rm -f release_cmake-${HOST}.sh")
-
-# copy the release script to the remote server via tr to remove any dos
-# line feed stuff in case this was run on a windows box
+# 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"
- "tr -d '\\\\015' > release_cmake-${HOST}.sh" release_cmake-${HOST}.sh)
+ "cat > release_cmake-${HOST}.sh" release_cmake-${HOST}.sh)
# now run the script on the remote machine
remote_command("Run release script" "${RUN_SHELL} release_cmake-${HOST}.sh")