summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-05-05 16:25:28 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-05-05 16:25:28 (GMT)
commitc0c80acc4a971733b73a87a2e92572e998016967 (patch)
tree75f9a846347a205003c7380616589061097f52ed
parent9f46c81b45221a473c6d1fc9a64cec5fc022f352 (diff)
downloadCMake-c0c80acc4a971733b73a87a2e92572e998016967.zip
CMake-c0c80acc4a971733b73a87a2e92572e998016967.tar.gz
CMake-c0c80acc4a971733b73a87a2e92572e998016967.tar.bz2
ENH: remove old copy
-rw-r--r--Utilities/Release/release_cmake.cmake2
-rwxr-xr-xUtilities/Release/release_cmake.sh.in2
2 files changed, 4 insertions, 0 deletions
diff --git a/Utilities/Release/release_cmake.cmake b/Utilities/Release/release_cmake.cmake
index 9882935..f5049ea 100644
--- a/Utilities/Release/release_cmake.cmake
+++ b/Utilities/Release/release_cmake.cmake
@@ -52,6 +52,8 @@ set(CMAKE_BACKWARDS_COMPATIBILITY 2.4)
configure_file(${SCRIPT_PATH}/release_cmake.sh.in
release_cmake-${HOST}.sh @ONLY)
file(READ release_cmake-${HOST}.sh RELEASE_CMAKE_CONTENTS)
+remote_command("remove old release_cmake-${HOST}.sh from server"
+ "rm -f release_cmake-${HOST}.sh")
remote_command("Copy release_cmake-${HOST}.sh to sever"
"tr -d '\\\\015' > release_cmake-${HOST}.sh" release_cmake-${HOST}.sh)
diff --git a/Utilities/Release/release_cmake.sh.in b/Utilities/Release/release_cmake.sh.in
index bf8d0c8..7591149 100755
--- a/Utilities/Release/release_cmake.sh.in
+++ b/Utilities/Release/release_cmake.sh.in
@@ -58,3 +58,5 @@ check_exit_value $? "Package cmake" || exit 1
echo "Create Tar.gz"
./bin/cpack -G TGZ
check_exit_value $? "Create TGZ" || exit 1
+
+exit 0