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/changelog | 6 ++++++ debian/rules | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/debian/changelog b/debian/changelog index 144a2eb..f7743e6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +libosmo-sccp (0.0.6.2+git2-1) precise; urgency=low + + * Fix version issue. + + -- Eric Butler Tue, 14 Aug 2012 20:52:45 -0700 + libosmo-sccp (0.0.6.2+git2) precise; urgency=low * Update debian package. 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