From 7a1bc0a7f4a453b064dd99ebeebfe00ea5c20e6d Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 24 Jul 2013 16:43:14 +0200 Subject: [PATCH] create proper changelog entry --- debian_wrap_maven_results.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 -- 2.39.5