From: Holger Levsen Date: Wed, 24 Jul 2013 14:43:14 +0000 (+0200) Subject: create proper changelog entry X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=7a1bc0a7f4a453b064dd99ebeebfe00ea5c20e6d;p=profitbricks%2Fjenkins-build-scripts.git create proper changelog entry --- diff --git a/debian_wrap_maven_results.sh b/debian_wrap_maven_results.sh index ce60935..3b48a9c 100755 --- a/debian_wrap_maven_results.sh +++ b/debian_wrap_maven_results.sh @@ -72,9 +72,11 @@ set -e # fail on error set -x # echo commands executed # change version in changelog -git-dch -a --ignore-branch -# we now what we're doing and we don't want an editor.…. -echo | EDITOR=true dch -D ${DISTRIBUTION} --newversion ${VERSION} --no-force-save-on-release --force-distribution --force-bad-version +git-dch -a --ignore-branch --no-full --no-meta --id-length=7 +# replace first version (enclosed in brackets) with real version +sed -i "0,/(.*)/s//($VERSION)/" debian/changelog +# replace first UNRELEASED with $DISTRIBUTION +sed -i "0,/UNRELEASED/s//$DISTRIBUTION/" debian/changelog # build debian package (just binary, no source package) dpkg-buildpackage -us -uc -b