From 304d1fc8d2dabd14e35776e503954aed73fe43ce Mon Sep 17 00:00:00 2001 From: Jan Luebbe Date: Thu, 9 Jun 2011 23:26:52 +0200 Subject: Write .tarball-version directly --- debian/gbp.conf | 1 + debian/rules | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/debian/gbp.conf b/debian/gbp.conf index f3a20397..79085c52 100644 --- a/debian/gbp.conf +++ b/debian/gbp.conf @@ -10,6 +10,7 @@ pristine-tar = False # Options only affecting git-buildpackage [git-buildpackage] +prebuild = GIT_DIR=$GBP_GIT_DIR debian/rules tarball-version export-dir = ../gbp-build-area/ # compress with bzip2 compression = bzip2 diff --git a/debian/rules b/debian/rules index 15f78f2c..0ba229f3 100755 --- a/debian/rules +++ b/debian/rules @@ -11,9 +11,14 @@ CFLAGS = -Wall -g +DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p') + %: dh --with autoreconf $@ #override_dh_strip: # dh_strip --dbg-package=libosmocore-dbg +tarball-version: + git describe --abbrev=4 --match '*.*.*' $(DEB_UPSTREAM_VERSION) | sed 's/-/./;s/\(.*\)-g/\1-/' > .tarball-version + -- cgit v1.2.3