mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 14:01:21 +00:00
0c7029c642
Move the CMake version number components out of "CMakeLists.txt" into dedicated file "Source/CMakeVersion.cmake". Set the TWEAK level to the date explicitly. Add a "Source/CMakeVersion.bash" script to update the date, thus replacing KWSys DateStamp for CMake. Teach the bootstrap script to extract the version components from their new location.
8 lines
362 B
Bash
Executable File
8 lines
362 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Update the version component if it looks like a date or -f is given.
|
|
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/
|
|
' "${BASH_SOURCE%/*}/CMakeVersion.cmake"
|