diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-05-05 16:14:32 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-05-05 16:14:32 (GMT) |
commit | 9f46c81b45221a473c6d1fc9a64cec5fc022f352 (patch) | |
tree | 9ca3446df1548a8ac4dbe6982b41eeb5b9974205 /Utilities/Release/release_cmake.sh.in | |
parent | 66d7aef82b1c3019e7a69e2af24835bd49edba53 (diff) | |
download | CMake-9f46c81b45221a473c6d1fc9a64cec5fc022f352.zip CMake-9f46c81b45221a473c6d1fc9a64cec5fc022f352.tar.gz CMake-9f46c81b45221a473c6d1fc9a64cec5fc022f352.tar.bz2 |
ENH: working on hp
Diffstat (limited to 'Utilities/Release/release_cmake.sh.in')
-rwxr-xr-x | Utilities/Release/release_cmake.sh.in | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/Utilities/Release/release_cmake.sh.in b/Utilities/Release/release_cmake.sh.in index 3b55bb7..bf8d0c8 100755 --- a/Utilities/Release/release_cmake.sh.in +++ b/Utilities/Release/release_cmake.sh.in @@ -2,17 +2,16 @@ echo "remove and create working directory ~/CMakeReleaseDirectory" rm -rf ~/CMakeReleaseDirectory mkdir ~/CMakeReleaseDirectory - check_exit_value() { VALUE="$1" - if [ "$VALUE" != "0" ]\; then + if [ "$VALUE" != "0" ]; then echo "error in $2" exit 1 fi } -if [ ! -z "@USER_MAKE_RULE_FILE_CONTENTS@" ]\; then +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 @@ -22,29 +21,29 @@ 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 +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 +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 "cmake" | @CVS_COMMAND@ -d @CVSROOT@ login echo "Checkout the source for @CMAKE_VERSION@" cd ~/CMakeReleaseDirectory -@CMAKE_CHECKOUT@ -d ${CMAKE_VERSION} CMake +@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@ +../@CMAKE_VERSION@/bootstrap --parallel=@PROCESSORS@ check_exit_value $? "Bootstrap cmake" || exit 1 -echo "Build cmake with ${MAKE}" +echo "Build cmake with @MAKE@ @MAKE@ check_exit_value $? "Build cmake" || exit 1 |