summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-01-11 11:22:04 +1100
committerAndrew Tridgell <tridge@samba.org>2011-01-11 02:10:05 +0100
commitec103b327627a8083a5eec4f4b3b2a3b233fd8f2 (patch)
treedd89530b32ddd83dd96a00749e33c6f2e0b7dd33
parent20418ccc1461404d69646e9c39c1c86ed88044ce (diff)
downloadsamba-ec103b327627a8083a5eec4f4b3b2a3b233fd8f2.tar.gz
samba-ec103b327627a8083a5eec4f4b3b2a3b233fd8f2.tar.bz2
samba-ec103b327627a8083a5eec4f4b3b2a3b233fd8f2.zip
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
-rwxr-xr-xscript/librelease.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/script/librelease.sh b/script/librelease.sh
index 105e794c69..1c75bf1c14 100755
--- a/script/librelease.sh
+++ b/script/librelease.sh
@@ -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