diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2010-02-23 16:49:11 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2010-02-23 16:49:11 (GMT) |
commit | b0cf7e98ad7633f021009c1a0d267cd5c9e8ec70 (patch) | |
tree | bf6c84d16e22aca344bcd2dba656f16edfdf6545 /Utilities/Release/release_cmake.sh.in | |
parent | 73395fb0eb02427cc86dd84a2d400db2c6789fdd (diff) | |
download | CMake-b0cf7e98ad7633f021009c1a0d267cd5c9e8ec70.zip CMake-b0cf7e98ad7633f021009c1a0d267cd5c9e8ec70.tar.gz CMake-b0cf7e98ad7633f021009c1a0d267cd5c9e8ec70.tar.bz2 |
Switch to git repository for creation of nightly releases.
Diffstat (limited to 'Utilities/Release/release_cmake.sh.in')
-rwxr-xr-x | Utilities/Release/release_cmake.sh.in | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/Utilities/Release/release_cmake.sh.in b/Utilities/Release/release_cmake.sh.in index 1e8b30d..e4c466c 100755 --- a/Utilities/Release/release_cmake.sh.in +++ b/Utilities/Release/release_cmake.sh.in @@ -69,13 +69,28 @@ echo "Create initial cache" echo "@INITIAL_CACHE@" > @CMAKE_RELEASE_DIRECTORY@/@CMAKE_CREATE_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_CREATE_VERSION@" cd @CMAKE_RELEASE_DIRECTORY@ -@CMAKE_CHECKOUT@ -d @CMAKE_CREATE_VERSION@ CMake -check_exit_value $? "Checkout cmake source" || exit 1 +if [ ! -z "@GIT_COMMAND@" ]; then + # clone the repo without creating any source files in the directory + # matching the branch being built (i.e. master CMake-2-8, etc) + @GIT_COMMAND@ clone -n git://cmake.org/cmake-tmp.git @CMAKE_CREATE_VERSION@ + check_exit_value $? "Checkout git cmake source" || exit 1 + # go into the git directory + cd @CMAKE_CREATE_VERSION@ + # run any extra commands if they exist + @GIT_EXTRA@ + check_exit_value $? "git extra cmake source" || exit 1 + # now checkout a copy on the local branch working + @GIT_COMMAND@ checkout -b working origin/@GIT_BRANCH@ + check_exit_value $? "git checkout" || exit 1 + cd .. +else + # for CVS just run the CMAKE_CHECKOUT command as set + # in release_cmake.cmake + @CMAKE_CHECKOUT@ + check_exit_value $? "CVS Checkout cmake source" || exit 1 +fi cd @CMAKE_RELEASE_DIRECTORY@/@CMAKE_CREATE_VERSION@-build |