debian/rules: update the version safety check

To support Debian stable updates.
This commit is contained in:
Marco d'Itri 2014-01-11 04:02:21 +01:00
parent d053b2f1f6
commit 33bbce446b

2
debian/rules vendored
View File

@ -13,7 +13,7 @@ DPKG_EXPORT_BUILDFLAGS = 1
D := $(CURDIR)/debian/whois
VERSION := $(shell dpkg-parsechangelog | sed -n 's/~*ubuntu[0-9]*.*$$//; s/\+.*$$//; /^Version/s/.* //p')
VERSION := $(shell dpkg-parsechangelog | sed -rn 's/(~deb|~?ubuntu)[0-9]*.*$$//; s/\+.*$$//; /^Version/s/.* //p')
build:
dh_testdir