diff options
author | Eric Butler <eric@codebutler.com> | 2012-08-14 21:01:20 -0700 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-08-26 20:09:54 +0200 |
commit | 010c9551ff70869e7be7fc106f3bd7245209ad43 (patch) | |
tree | 899ff36cb555038c5d65c08d3b62b211571188d0 | |
parent | a73ca05db6d674ee072e29a950fbf4604fa26198 (diff) |
Use package version since git info won't be available.
-rw-r--r-- | openbsc/debian/changelog | 6 | ||||
-rwxr-xr-x | openbsc/debian/rules | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/openbsc/debian/changelog b/openbsc/debian/changelog index 42c06f8f2..403eef8a8 100644 --- a/openbsc/debian/changelog +++ b/openbsc/debian/changelog @@ -1,3 +1,9 @@ +openbsc (0.12.0+git26-1) precise; urgency=low + + * Fix version issue. + + -- Eric Butler <eric@codebutler.com> Tue, 14 Aug 2012 21:00:51 -0700 + openbsc (0.12.0+git26) precise; urgency=low * Updated ubuntu package. diff --git a/openbsc/debian/rules b/openbsc/debian/rules index 4331d02a3..34ef3e7d9 100755 --- a/openbsc/debian/rules +++ b/openbsc/debian/rules @@ -13,10 +13,15 @@ # 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_auto_configure: + echo $(VERSION) > .tarball-version dh_auto_configure -- --enable-nat --enable-osmo-bsc override_dh_auto_test: |