mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
4230d8a81e
commit
95387db8f3
14
debian/updateversion
vendored
Executable file
14
debian/updateversion
vendored
Executable 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}" ""
|
Loading…
x
Reference in New Issue
Block a user