diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-04-22 10:18:15 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-04-22 10:54:21 +0200 |
commit | 74458b53ed37662586bd2f4466980bec1883364a (patch) | |
tree | 8e54dd809bf27f3827f256522fff9bf832f0102b /script | |
parent | bacc019daba9d846f44cb66a04e470db7f9f24ac (diff) | |
download | samba-74458b53ed37662586bd2f4466980bec1883364a.tar.gz samba-74458b53ed37662586bd2f4466980bec1883364a.tar.bz2 samba-74458b53ed37662586bd2f4466980bec1883364a.zip |
script/librelease: add more error checking
metze
Diffstat (limited to 'script')
-rwxr-xr-x | script/librelease.sh | 12 |
1 files changed, 9 insertions, 3 deletions
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 } |