Debian: add updateversion tool for local tests.

Refs #5816
This commit is contained in:
Markus Frosch 2014-05-25 21:30:29 +02:00
parent 4230d8a81e
commit 95387db8f3
1 changed files with 14 additions and 0 deletions

14
debian/updateversion vendored Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
###
# Helper script to update the Debian changelog locally
###
set -e
set -x
#VERSION=$(grep -E "^Version:" icinga2.spec | cut -d" " -f2)
VERSION=`git describe | sed 's/^v//' | grep -oP "^\d+\.\d+\.\d+"`
DEB_VERSION_SUFFIX=$(echo "+icingasnap"`date +%Y%m%d%H%M`"."`git rev-parse --short HEAD`)
# update Debian version
dch "$@" --newversion "${VERSION}${DEB_VERSION_SUFFIX}" ""