2014-05-25 21:30:29 +02:00
|
|
|
#!/bin/bash
|
|
|
|
###
|
|
|
|
# Helper script to update the Debian changelog locally
|
|
|
|
###
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
#VERSION=$(grep -E "^Version:" icinga2.spec | cut -d" " -f2)
|
2014-06-11 13:24:07 +02:00
|
|
|
VERSION=`git describe --abbrev=0 | sed 's/^v//' | grep -oP "^\d+\.\d+\.\d+(-.*)?" | sed 's/-/~/'`
|
2014-05-25 21:30:29 +02:00
|
|
|
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}" ""
|