summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-04-22 10:18:15 +0200
committerStefan Metzmacher <metze@samba.org>2011-04-22 10:54:21 +0200
commit74458b53ed37662586bd2f4466980bec1883364a (patch)
tree8e54dd809bf27f3827f256522fff9bf832f0102b /script
parentbacc019daba9d846f44cb66a04e470db7f9f24ac (diff)
downloadsamba-74458b53ed37662586bd2f4466980bec1883364a.tar.gz
samba-74458b53ed37662586bd2f4466980bec1883364a.tar.bz2
samba-74458b53ed37662586bd2f4466980bec1883364a.zip
script/librelease: add more error checking
metze
Diffstat (limited to 'script')
-rwxr-xr-xscript/librelease.sh12
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
}