mirror of https://github.com/Icinga/icinga2.git
Debian: update updateversion tool to handle pre-release tags.
Refs #5816
This commit is contained in:
parent
95387db8f3
commit
9c40164e6c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue