File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 115115
116116CMAKE_VERSION=$(
117117 git -C " ${SOURCE_ROOT} " show " ${GIT_REF} :CMakeLists.txt" |
118- sed -n ' s/^[[:space:]]*VERSION[[:space:]]\+\([0-9][0-9.]*\).*$/\1/p' |
119- head -n 1
118+ awk ' $1 == "VERSION" && $2 ~ /^[0-9]+\.[0-9]+\.[0-9]+$/ { print $2; exit }'
120119)
121120[[ " ${CMAKE_VERSION} " == " ${RELEASE_VERSION} " ]] ||
122121 fail " CMake version ${CMAKE_VERSION:- <missing>} does not match ${RELEASE_VERSION} "
Original file line number Diff line number Diff line change @@ -167,9 +167,8 @@ for required_file in LICENSE NOTICE CMakeLists.txt docs/source/conf.py; do
167167done
168168
169169CMAKE_VERSION=$(
170- sed -n ' s/^[[:space:]]*VERSION[[:space:]]\+\([0-9][0-9.]*\).*$/\1/p' \
171- " ${SOURCE_DIR} /CMakeLists.txt" |
172- head -n 1
170+ awk ' $1 == "VERSION" && $2 ~ /^[0-9]+\.[0-9]+\.[0-9]+$/ { print $2; exit }' \
171+ " ${SOURCE_DIR} /CMakeLists.txt"
173172)
174173[[ " ${CMAKE_VERSION} " == " ${RELEASE_VERSION} " ]] ||
175174 fail " CMake version ${CMAKE_VERSION:- <missing>} does not match ${RELEASE_VERSION} "
You can’t perform that action at this time.
0 commit comments