Skip to content

Commit

Permalink
Use debian changelog for debian version
Browse files Browse the repository at this point in the history
  • Loading branch information
kdm9 committed Feb 24, 2015
1 parent f55994a commit 6e40a25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion make-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e40a25

Please sign in to comment.