From 050ff794a2e513e9fedc7df634139f50de6f5087 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wolfgang=20St=C3=B6ggl?= Date: Tue, 15 Mar 2022 18:13:35 +0100 Subject: [PATCH] rrdtool-release: Create NUMVERS from VERSION file In the script rrdtool-release, NUMVERS has been read from the configure file so far, which may not be up-to-date. Generate NUMVERS from the VERSION file instead. This ensures that only one source is used vor the version - the VERSION file. Use the same perl command for creating NUMVERS, as in configure.ac --- rrdtool-release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rrdtool-release b/rrdtool-release index 570b6872..8c92c884 100755 --- a/rrdtool-release +++ b/rrdtool-release @@ -2,7 +2,7 @@ # shellcheck disable=SC2086,SC2046,SC2029 set -e VERSION=$(cat VERSION) -NUMVERS=$(perl -n -e 'm/NUMVERS=(\d+\.\d+)/ && print $1' configure) +NUMVERS=$(perl -n -e 'my @x=split /\./;printf "%d.%d%03d", @x' VERSION) CURRENT_YEAR=$(date +"%Y") set -x perl -i -p -e 's/^\$VERSION.+/\$VERSION='$NUMVERS';/' bindings/perl-*/*.pm -- 2.47.2