3 # Helper script to update the Debian changelog locally
9 #VERSION=$(grep -E "^Version:" icinga2.spec | cut -d" " -f2)
10 VERSION=`git describe --abbrev=0 | sed 's/^v//' | grep -oP "^\d+\.\d+\.\d+(-.*)?" | sed 's/-/~/'`
11 DEB_VERSION_SUFFIX=$(echo "+icingasnap"`date +%Y%m%d%H%M`"."`git rev-parse --short HEAD`)
13 # update Debian version
14 dch "$@" --newversion "${VERSION}${DEB_VERSION_SUFFIX}" ""