diff --git a/ci/ci-release-build.sh b/ci/ci-release-build.sh index e7e7f111fc..ca60a4a370 100755 --- a/ci/ci-release-build.sh +++ b/ci/ci-release-build.sh @@ -10,14 +10,26 @@ set -euo pipefail HEAD=${PAPR_COMMIT:-HEAD} git log --format=%B -n 1 $HEAD > log.txt -trap "rm -f log.txt" EXIT +trap "rm -f version.m4 log.txt" EXIT if grep -q ^is_release_build=yes configure.ac; then echo "*** is_release_build is set to yes ***" - V=$(grep -Po '^#define PACKAGE_VERSION "\K[0-9]+\.[0-9]+(?=")' config.h) + # assemble a short m4 macro file to evaluate 'package_version' + cat > version.m4 <> version.m4 + + cat >> version.m4 <