Util-Linux package development
 help / color / mirror / Atom feed
* [PATCH 1/5] build-sys: fix empty package release number
@ 2016-11-17  2:09 Ruediger Meier
  2016-11-17  2:09 ` [PATCH 2/5] build-sys: update package release number during development Ruediger Meier
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Ruediger Meier @ 2016-11-17  2:09 UTC (permalink / raw)
  To: util-linux

From: Ruediger Meier <ruediger.meier@ga-group.nl>

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 <ruediger.meier@ga-group.nl>
---
 configure.ac | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1bd7d2e..f3521ae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,10 +23,8 @@ dnl version details from <major>.<minor>[-<suffix>]
 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"
-- 
1.8.5.6


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-11-29  9:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-17  2:09 [PATCH 1/5] build-sys: fix empty package release number Ruediger Meier
2016-11-17  2:09 ` [PATCH 2/5] build-sys: update package release number during development Ruediger Meier
2016-11-17  2:10 ` [PATCH 3/5] build-sys: cosmetics PACKAGE_VERSION_MINOR Ruediger Meier
2016-11-17  2:10 ` [PATCH 4/5] build-sys: remove old git fallback from git-version-gen Ruediger Meier
2016-11-17  7:22   ` Bernhard Voelker
2016-11-17 10:44     ` Ruediger Meier
2016-11-17  2:10 ` [PATCH 5/5] build-sys: fix "remove the g in git describe" Ruediger Meier
2016-11-29  9:53 ` [PATCH 1/5] build-sys: fix empty package release number Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox