From c42a6d4d340b2f829369eae19ec2d888d33cb433 Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Thu, 17 Nov 2016 03:09:58 +0100 Subject: build-sys: fix empty package release number Was broken for major releases since b0e6b25e: $ blkid -V blkid from util-linux 2.28 (libblkid 2.28., 12-Apr-2016) Now we also set 0 in this case, like: $ blkid -V blkid from util-linux 2.30 (libblkid 2.30.0, 12-Apr-2016) Signed-off-by: Ruediger Meier --- configure.ac | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index b17ccd69b..8391c00c7 100644 --- a/configure.ac +++ b/configure.ac @@ -23,10 +23,8 @@ dnl version details from .[-] PACKAGE_VERSION_MAJOR=$(echo $PACKAGE_VERSION | awk -F. '{print $1}') PACKAGE_VERSION_MINOR=$(echo $PACKAGE_VERSION | awk -F. '{print $2}' \ | awk -F- '{print $1}') - -PACKAGE_VERSION_RELEASE=$(echo $PACKAGE_VERSION | awk -F. '{print $3}' \ - | sed 's/.*@<:@^@<:@:digit:@:>@@:>@.*/0/') - +PACKAGE_VERSION_RELEASE=$(echo $PACKAGE_VERSION | awk -F. '{ + print $3 ~ /^@<:@[0-9]@:>@+$/ ? $3 : 0}') dnl libblkid version LIBBLKID_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE" -- cgit v1.2.3-55-g7522