From 5370d033fbbf3bb1a65b56b314dc9dca3d3cc781 Mon Sep 17 00:00:00 2001 From: Eric Butler Date: Tue, 14 Aug 2012 20:53:39 -0700 Subject: Use package version since git info won't be available. --- debian/rules | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 21dfdfb..fb879ef 100755 --- a/debian/rules +++ b/debian/rules @@ -9,5 +9,13 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +DEBIAN := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2) +DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1) +VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g') + %: dh --with autoreconf $@ + +override_dh_autoreconf: + echo $(VERSION) > .tarball-version + dh_autoreconf -- cgit v1.2.3