]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: update package release number during development
authorRuediger Meier <ruediger.meier@ga-group.nl>
Thu, 17 Nov 2016 02:09:59 +0000 (03:09 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 29 Nov 2016 09:47:11 +0000 (10:47 +0100)
Now we use
   v2.29-5-g8ffab30  -> 2.29.5-8ffa   (libblkid 2.29.5)
instead of
   v2.29-5-g8ffab30  -> 2.29.5-8ffa   (libblkid 2.29.0)

otherwise the bugfix releases (2.29.1) would look newer that latest HEAD.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
configure.ac

index 8391c00c7b025584ae95d98cfe81cde18382d4f6..eb479cbaca121937924c185682a76b1aa39cf4d4 100644 (file)
@@ -24,7 +24,7 @@ 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 ~ /^@<:@[0-9]@:>@+$/ ? $3 : 0}')
+                     sub("-.*","",$3); print $3 ~ /^@<:@[0-9]@:>@+$/ ? $3 : 0}')
 
 dnl libblkid version
 LIBBLKID_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"