From 74458b53ed37662586bd2f4466980bec1883364a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 22 Apr 2011 10:18:15 +0200 Subject: script/librelease: add more error checking metze --- script/librelease.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'script') diff --git a/script/librelease.sh b/script/librelease.sh index 976c801120..d2bb79c2d2 100755 --- a/script/librelease.sh +++ b/script/librelease.sh @@ -41,11 +41,15 @@ release_lib() { tagname=$(basename $tarname .tar | sed s/[\.]/-/g) echo "tagging as $tagname" - git tag -u $GPG_KEYID -s "$tagname" -m "$lib: tag release $tagname" + git tag -u $GPG_KEYID -s "$tagname" -m "$lib: tag release $tagname" || { + exit 1 + } echo "signing" rm -f "$tarname.asc" - gpg -u "$GPG_USER" --detach-sign --armor $tarname || exit 1 + gpg -u "$GPG_USER" --detach-sign --armor $tarname || { + exit 1 + } [ -f "$tarname.asc" ] || { echo "Failed to create signature $tarname.asc" exit 1 @@ -58,7 +62,9 @@ release_lib() { } echo "Transferring" - rsync -Pav $tarname.asc $tgzname master.samba.org:~ftp/pub/$lib/ + rsync -Pav $tarname.asc $tgzname master.samba.org:~ftp/pub/$lib/ || { + exit 1 + } popd } -- cgit