1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

script: tag the releases

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Jan 11 02:10:05 CET 2011 on sn-devel-104
This commit is contained in:
Andrew Tridgell 2011-01-11 11:22:04 +11:00
parent 20418ccc14
commit ec103b3276

View File

@ -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