From: Michael Prokop Date: Sat, 2 Oct 2010 11:23:47 +0000 (+0200) Subject: scripts/release_helper.sh: cancel if editing changelog returned error, provide cmdlin... X-Git-Tag: v0.12.0~35 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=df6303ee3906a8579e3c08dd5f212e63d11c5d4f scripts/release_helper.sh: cancel if editing changelog returned error, provide cmdline options to git-buildpackage cmd. --- diff --git a/scripts/release_helper.sh b/scripts/release_helper.sh index 3e64a9c..69ece2c 100755 --- a/scripts/release_helper.sh +++ b/scripts/release_helper.sh @@ -23,7 +23,10 @@ git-dch --debian-branch="$(git branch | awk -F\*\ '/^* / { print $2}' )" \ --id-length=7 --meta --multimaint-merge -S printf "OK\n" -$EDITOR debian/changelog +if ! $EDITOR debian/changelog ; then + printf "Exiting as editing debian/changelog returned an error." >&2 + exit 1 +fi debian_version="$(dpkg-parsechangelog | awk '/^Version:/ {print $2}')" @@ -55,7 +58,7 @@ if $dorelease ; then fi printf "Building debian packages:\n" -git-buildpackage --git-debian-branch="$(git branch | awk -F\*\ '/^* / { print $2}' )" --git-ignore-new +git-buildpackage --git-debian-branch="$(git branch | awk -F\*\ '/^* / { print $2}' )" --git-ignore-new $* printf "Finished execution of $(basename $0). Do not forget to tag release ${debian_version}\n" ## END OF FILE #################################################################