aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Butler <eric@codebutler.com>2012-08-14 20:53:39 -0700
committerEric Butler <eric@codebutler.com>2012-08-14 20:53:39 -0700
commit5370d033fbbf3bb1a65b56b314dc9dca3d3cc781 (patch)
treefc2afd390d190a8499362ed5c5db1a172a70f6e4
parent178d606379971a4cccacafbd6be315dabf0ae342 (diff)
Use package version since git info won't be available.0.0.6.3
-rw-r--r--debian/changelog6
-rwxr-xr-xdebian/rules8
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