Skip to content

Commit

Permalink
script: tag the releases
Browse files Browse the repository at this point in the history
Autobuild-User: Andrew Tridgell <[email protected]>
Autobuild-Date: Tue Jan 11 02:10:05 CET 2011 on sn-devel-104
  • Loading branch information
Andrew Tridgell committed Jan 11, 2011
1 parent 20418cc commit ec103b3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions script/librelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,25 @@ release_lib() {
}
tarname=$(basename $tgzname .gz)
echo "Tarball: $tarname"
gunzip $tgzname || exit 1
gunzip -f $tgzname || exit 1
[ -f "$tarname" ] || {
echo "Failed to decompress tarball $tarname"
exit 1
}

tagname=$(basename $tarname .tar | sed s/[\.]/-/g)
echo "tagging as $tagname"
git tag -s "$tagname" -m "$lib: tag release $tagname"

echo "signing"
rm -f "$tarname.asc"
gpg --detach-sign --armor $tarname || exit 1
[ -f "$tarname.asc" ] || {
echo "Failed to create signature $tarname.asc"
exit 1
}
echo "compressing"
gzip -9 $tarname
gzip -f -9 $tarname
[ -f "$tgzname" ] || {
echo "Failed to compress $tgzname"
exit 1
Expand Down

0 comments on commit ec103b3

Please sign in to comment.