summaryrefslogtreecommitdiffstats
path: root/debian/rules
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 /debian/rules
parent178d606379971a4cccacafbd6be315dabf0ae342 (diff)
Use package version since git info won't be available.0.0.6.3
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules8
1 files changed, 8 insertions, 0 deletions
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