https://github.com/Kitware/CMake
Raw File
Tip revision: 9150c818b7d2afb868575fcb2e0c9ba62b9d7f85 authored by Brad King on 10 October 2019, 13:31:05 UTC
CMake 3.16.0-rc1
Tip revision: 9150c81
CMakeVersion.bash
#!/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_PATCH\) [0-9]'"$n"'\(.*\)/\1 '"$(date +%Y%m%d)"'\2/
' "${BASH_SOURCE%/*}/CMakeVersion.cmake"
back to top