Debian: update updateversion tool to handle pre-release tags.

Refs #5816
This commit is contained in:
Markus Frosch 2014-06-11 13:24:07 +02:00
parent 95387db8f3
commit 9c40164e6c
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ set -e
set -x
#VERSION=$(grep -E "^Version:" icinga2.spec | cut -d" " -f2)
VERSION=`git describe | sed 's/^v//' | grep -oP "^\d+\.\d+\.\d+"`
VERSION=`git describe --abbrev=0 | sed 's/^v//' | grep -oP "^\d+\.\d+\.\d+(-.*)?" | sed 's/-/~/'`
DEB_VERSION_SUFFIX=$(echo "+icingasnap"`date +%Y%m%d%H%M`"."`git rev-parse --short HEAD`)
# update Debian version