diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2010-04-20 19:03:20 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2010-04-20 19:03:20 (GMT) |
commit | 7849674012189c4337d05dbc5b2926d3c12951fe (patch) | |
tree | 780743858e16a132e51b883d11244705c8ad02a4 /Utilities/Release/release_cmake.sh.in | |
parent | 22e9f2d0abf4ca7ff0b8551ba1be2ce6a3530336 (diff) | |
download | CMake-7849674012189c4337d05dbc5b2926d3c12951fe.zip CMake-7849674012189c4337d05dbc5b2926d3c12951fe.tar.gz CMake-7849674012189c4337d05dbc5b2926d3c12951fe.tar.bz2 |
Fix release scripts.
Diffstat (limited to 'Utilities/Release/release_cmake.sh.in')
-rwxr-xr-x | Utilities/Release/release_cmake.sh.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Utilities/Release/release_cmake.sh.in b/Utilities/Release/release_cmake.sh.in index ee56f39..b2ca348 100755 --- a/Utilities/Release/release_cmake.sh.in +++ b/Utilities/Release/release_cmake.sh.in @@ -69,6 +69,13 @@ echo "Create initial cache" echo "@INITIAL_CACHE@" > @CMAKE_RELEASE_DIRECTORY@/@CMAKE_CREATE_VERSION@-build/CMakeCache.txt check_exit_value $? "Create initial cache" || exit 1 +# create a user override file user.txt if USER_OVERRIDE is set, +# and append the cache variable to the cache +if [ ! -z "@USER_OVERRIDE@" ]; then + echo "@USER_OVERRIDE@" > @CMAKE_RELEASE_DIRECTORY@/@CMAKE_CREATE_VERSION@-build/user.txt + echo "CMAKE_USER_MAKE_RULES_OVERRIDE:FILEPATH=@CMAKE_RELEASE_DIRECTORY@/@CMAKE_CREATE_VERSION@-build/user.txt" >> @CMAKE_RELEASE_DIRECTORY@/@CMAKE_CREATE_VERSION@-build/CMakeCache.txt +fi + echo "Checkout the source for @CMAKE_CREATE_VERSION@" cd @CMAKE_RELEASE_DIRECTORY@ if [ ! -z "@GIT_COMMAND@" ]; then |