From cf0dd78f7fb1f599f61d8e47ac7fa026fa4717d3 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Tue, 13 Mar 2018 13:41:24 +0000 Subject: Changed the way the version parsing is done Signed-off-by: Olivier Gayot --- debian/rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'debian') diff --git a/debian/rules b/debian/rules index b188641..110c4c8 100755 --- a/debian/rules +++ b/debian/rules @@ -18,8 +18,8 @@ # Bash is easier export SHELL = /bin/bash -VERSION := $(shell head -1 debian/changelog | sed 's/.*(//;s/).*//') -UPSTREAM := $(shell head -1 debian/changelog | sed 's/.*(//;s/-.?*).*//') +VERSION := $(shell dpkg-parsechangelog --show-field Version) +UPSTREAM := $(shell dpkg-parsechangelog --show-field Version | grep --only-matching '^[[:digit:].]\+') # Last version that matches the database LAST_VERSION := 3.0.12 -- cgit v1.2.3