diff options
author | Brad King <brad.king@kitware.com> | 2012-08-14 12:25:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-08-14 12:25:51 (GMT) |
commit | a05eba57b50fa3224ed7579a604f9a84c44c6d02 (patch) | |
tree | f65f1fc92b3ca9296e26872e7b99fba00427d2c6 /Source/CMakeVersion.bash | |
parent | 3c0488d7d3557ac3840bd6f72ba18415699b1b44 (diff) | |
download | CMake-a05eba57b50fa3224ed7579a604f9a84c44c6d02.zip CMake-a05eba57b50fa3224ed7579a604f9a84c44c6d02.tar.gz CMake-a05eba57b50fa3224ed7579a604f9a84c44c6d02.tar.bz2 |
CMakeVersion.bash: Update sed expression for lower-case 'set'
Since commit 77543bde (Convert CMake-language commands to lower case,
2012-08-13) the CMakeVersion.cmake file contains lower-case 'set'
commands. Teach CMakeVersion.bash to replace the lower-case name
instead of the old upper-case 'SET'.
Diffstat (limited to 'Source/CMakeVersion.bash')
-rwxr-xr-x | Source/CMakeVersion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CMakeVersion.bash b/Source/CMakeVersion.bash index 126adba..4794e60 100755 --- a/Source/CMakeVersion.bash +++ b/Source/CMakeVersion.bash @@ -3,5 +3,5 @@ if test "x$1" = "x-f"; then shift ; n='*' ; else n='\{8\}' ; fi if test "$#" -gt 0; then echo 1>&2 "usage: CMakeVersion.bash [-f]"; exit 1; fi sed -i -e ' -s/\(^SET(CMake_VERSION_TWEAK\) [0-9]'"$n"'\(.*\)/\1 '"$(date +%Y%m%d)"'\2/ +s/\(^set(CMake_VERSION_TWEAK\) [0-9]'"$n"'\(.*\)/\1 '"$(date +%Y%m%d)"'\2/ ' "${BASH_SOURCE%/*}/CMakeVersion.cmake" |