diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 385b482d..05bdee19 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -37,7 +37,8 @@ if(TARGET Arrow::arrow_shared) elseif(TARGET Arrow::arrow_static) set(PAIMON_EXAMPLE_ARROW_TARGET Arrow::arrow_static) else() - message(FATAL_ERROR "Neither Arrow::arrow_shared nor Arrow::arrow_static is available") + message(FATAL_ERROR "Neither Arrow::arrow_shared nor Arrow::arrow_static is available" + ) endif() add_executable(read_write_demo read_write_demo.cpp) diff --git a/scripts/releasing/create_source_release.sh b/scripts/releasing/create_source_release.sh index fb0345a7..f65ae2b2 100755 --- a/scripts/releasing/create_source_release.sh +++ b/scripts/releasing/create_source_release.sh @@ -115,8 +115,7 @@ done CMAKE_VERSION=$( git -C "${SOURCE_ROOT}" show "${GIT_REF}:CMakeLists.txt" | - sed -n 's/^[[:space:]]*VERSION[[:space:]]\+\([0-9][0-9.]*\).*$/\1/p' | - head -n 1 + awk '$1 == "VERSION" && $2 ~ /^[0-9]+\.[0-9]+\.[0-9]+$/ { print $2; exit }' ) [[ "${CMAKE_VERSION}" == "${RELEASE_VERSION}" ]] || fail "CMake version ${CMAKE_VERSION:-} does not match ${RELEASE_VERSION}" diff --git a/scripts/releasing/verify_release_candidate.sh b/scripts/releasing/verify_release_candidate.sh index cf6660d6..47274cfd 100755 --- a/scripts/releasing/verify_release_candidate.sh +++ b/scripts/releasing/verify_release_candidate.sh @@ -167,9 +167,8 @@ for required_file in LICENSE NOTICE CMakeLists.txt docs/source/conf.py; do done CMAKE_VERSION=$( - sed -n 's/^[[:space:]]*VERSION[[:space:]]\+\([0-9][0-9.]*\).*$/\1/p' \ - "${SOURCE_DIR}/CMakeLists.txt" | - head -n 1 + awk '$1 == "VERSION" && $2 ~ /^[0-9]+\.[0-9]+\.[0-9]+$/ { print $2; exit }' \ + "${SOURCE_DIR}/CMakeLists.txt" ) [[ "${CMAKE_VERSION}" == "${RELEASE_VERSION}" ]] || fail "CMake version ${CMAKE_VERSION:-} does not match ${RELEASE_VERSION}"