summaryrefslogtreecommitdiffstats
path: root/Utilities/Release
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-05-05 02:58:49 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-05-05 02:58:49 (GMT)
commit68bac1440393187f7d0c758a651661842df13054 (patch)
treea7c254373fc34113455b3c6048e2777defa53fde /Utilities/Release
parent6661d55bcc1581dc25176c72f2f2b30ccc917757 (diff)
downloadCMake-68bac1440393187f7d0c758a651661842df13054.zip
CMake-68bac1440393187f7d0c758a651661842df13054.tar.gz
CMake-68bac1440393187f7d0c758a651661842df13054.tar.bz2
ENH: add file
Diffstat (limited to 'Utilities/Release')
-rwxr-xr-xUtilities/Release/release_cmake.sh.in122
1 files changed, 61 insertions, 61 deletions
diff --git a/Utilities/Release/release_cmake.sh.in b/Utilities/Release/release_cmake.sh.in
index 5a48451..ac8ec00 100755
--- a/Utilities/Release/release_cmake.sh.in
+++ b/Utilities/Release/release_cmake.sh.in
@@ -1,61 +1,61 @@
-#!/bin/sh
-echo "remove and create working directory ~/CMakeReleaseDirectory"
-rm -rf ~/CMakeReleaseDirectory
-mkdir ~/CMakeReleaseDirectory
-
-check_exit_value()
-{
- VALUE="$1"
- if [ "$VALUE" != "0" ]; then
- echo "error in $2"
- exit 1
- fi
-}
-
-if [ ! -z "@USER_MAKE_RULE_FILE_CONTENTS@" ]; then
- echo "@USER_MAKE_RULE_FILE_CONTENTS@" > "@USER_MAKE_RULE_FILE@"
- check_exit_value $? "Create User Rule file" || exit 1
-fi
-echo "Create a directory to build in"
-rm -rf ~/CMakeReleaseDirectory/@CMAKE_VERSION@-build
-check_exit_value $? "Remove build tree" || exit 1
-mkdir ~/CMakeReleaseDirectory/@CMAKE_VERSION@-build
-check_exit_value $? "Create build directory" || exit 1
-# make sure directory was created
-if [ ! -d ~/CMakeReleaseDirectory/@CMAKE_VERSION@-build ]; then
- echo "Could not create ~/CMakeReleaseDirectory/@CMAKE_VERSION@-build"
- exit -1
-fi
-
-echo "Create initial cache"
-echo "@INITIAL_CACHE@" > ~/CMakeReleaseDirectory/${CMAKE_VERSION}-build/CMakeCache.txt
-check_exit_value $? "Create initial cache" || exit 1
-
-#echo "Login into cvs."
-#echo "cmake" | @CVS_COMMAND@ -d ${CVSROOT} login
-
-echo "Checkout the source for @CMAKE_VERSION@"
-cd ~/CMakeReleaseDirectory
-@CMAKE_CHECKOUT@ -d ${CMAKE_VERSION} CMake
-check_exit_value $? "Checkout cmake source" || exit 1
-
-cd ~/CMakeReleaseDirectory/@CMAKE_VERSION@-build
-echo "Run cmake bootstrap --parallel=@PROCESSORS@"
-../${CMAKE_VERSION}/bootstrap --parallel=@PROCESSORS@
-check_exit_value $? "Bootstrap cmake" || exit 1
-
-echo "Build cmake with ${MAKE}"
-@MAKE@
-check_exit_value $? "Build cmake" || exit 1
-
-echo "Run cmake tests"
-@MAKE@ test
-check_exit_value $? "Test cmake" || exit 1
-
-echo "Run package"
-@MAKE@ package
-check_exit_value $? "Package cmake" || exit 1
-
-echo "Create Tar.gz"
-./bin/cpack -G TGZ
-check_exit_value $? "Create TGZ" || exit 1
+#!/bin/sh
+echo "remove and create working directory ~/CMakeReleaseDirectory"
+rm -rf ~/CMakeReleaseDirectory
+mkdir ~/CMakeReleaseDirectory
+
+check_exit_value()
+{
+ VALUE="$1"
+ if [ "$VALUE" != "0" ]; then
+ echo "error in $2"
+ exit 1
+ fi
+}
+
+if [ ! -z "@USER_MAKE_RULE_FILE_CONTENTS@" ]; then
+ echo "@USER_MAKE_RULE_FILE_CONTENTS@" > "@USER_MAKE_RULE_FILE@"
+ check_exit_value $? "Create User Rule file" || exit 1
+fi
+echo "Create a directory to build in"
+rm -rf ~/CMakeReleaseDirectory/@CMAKE_VERSION@-build
+check_exit_value $? "Remove build tree" || exit 1
+mkdir ~/CMakeReleaseDirectory/@CMAKE_VERSION@-build
+check_exit_value $? "Create build directory" || exit 1
+# make sure directory was created
+if [ ! -d ~/CMakeReleaseDirectory/@CMAKE_VERSION@-build ]; then
+ echo "Could not create ~/CMakeReleaseDirectory/@CMAKE_VERSION@-build"
+ exit -1
+fi
+
+echo "Create initial cache"
+echo "@INITIAL_CACHE@" > ~/CMakeReleaseDirectory/${CMAKE_VERSION}-build/CMakeCache.txt
+check_exit_value $? "Create initial cache" || exit 1
+
+#echo "Login into cvs."
+#echo "cmake" | @CVS_COMMAND@ -d ${CVSROOT} login
+
+echo "Checkout the source for @CMAKE_VERSION@"
+cd ~/CMakeReleaseDirectory
+@CMAKE_CHECKOUT@ -d ${CMAKE_VERSION} CMake
+check_exit_value $? "Checkout cmake source" || exit 1
+
+cd ~/CMakeReleaseDirectory/@CMAKE_VERSION@-build
+echo "Run cmake bootstrap --parallel=@PROCESSORS@"
+../${CMAKE_VERSION}/bootstrap --parallel=@PROCESSORS@
+check_exit_value $? "Bootstrap cmake" || exit 1
+
+echo "Build cmake with ${MAKE}"
+@MAKE@
+check_exit_value $? "Build cmake" || exit 1
+
+echo "Run cmake tests"
+@MAKE@ test
+check_exit_value $? "Test cmake" || exit 1
+
+echo "Run package"
+@MAKE@ package
+check_exit_value $? "Package cmake" || exit 1
+
+echo "Create Tar.gz"
+./bin/cpack -G TGZ
+check_exit_value $? "Create TGZ" || exit 1