diff options
-rw-r--r-- | debian/changelog | 6 | ||||
-rwxr-xr-x | debian/rules | 8 |
2 files changed, 14 insertions, 0 deletions
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 <eric@codebutler.com> 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 |