From 6e40a2553fd0599b85699a48b487f1dee6967b34 Mon Sep 17 00:00:00 2001 From: Kevin Murray Date: Thu, 29 Jan 2015 15:06:21 +1100 Subject: [PATCH] Use debian changelog for debian version --- make-deb.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/make-deb.sh b/make-deb.sh index d3bd844..efe7931 100644 --- a/make-deb.sh +++ b/make-deb.sh @@ -7,7 +7,9 @@ test -d .git PKG_DIR=axe-deb SRC_DIRS="src/ docs/ tests/ CMakeLists.txt debian/ version" -VERSION="$(git describe)" + +# grab version from changelog +VERSION="$(head -n 1 debian/changelog |perl -pe 's/.*\((.+)-.*/$1/')" echo $VERSION >version rm -rf $PKG_DIR/* axe_*.orig.tar.gz