projects
/
grml-live.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8f57397
)
scripts/release_helper.sh: cancel if editing changelog returned error, provide cmdlin...
author
Michael Prokop
<mika@grml.org>
Sat, 2 Oct 2010 11:23:47 +0000
(13:23 +0200)
committer
Michael Prokop
<mika@grml.org>
Sat, 2 Oct 2010 11:23:47 +0000
(13:23 +0200)
scripts/release_helper.sh
patch
|
blob
|
history
diff --git
a/scripts/release_helper.sh
b/scripts/release_helper.sh
index
3e64a9c
..
69ece2c
100755
(executable)
--- 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"
--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}')"
debian_version="$(dpkg-parsechangelog | awk '/^Version:/ {print $2}')"
@@
-55,7
+58,7
@@
if $dorelease ; then
fi
printf "Building debian packages:\n"
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 #################################################################
printf "Finished execution of $(basename $0). Do not forget to tag release ${debian_version}\n"
## END OF FILE #################################################################