changeset 34898:e5e6ba537dd9

Another minor release script update.
author reimar
date Sat, 02 Jun 2012 18:09:58 +0000
parents 9f5d0eade1bd
children 97173c2a9ad1
files DOCS/tech/release.sh
diffstat 1 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/tech/release.sh	Sat Jun 02 17:59:01 2012 +0000
+++ b/DOCS/tech/release.sh	Sat Jun 02 18:09:58 2012 +0000
@@ -5,9 +5,11 @@
 svnurl=svn://svn.mplayerhq.hu/mplayer/trunk
 #svnurl=svn://svn.mplayerhq.hu/mplayer/branches/$ver
 
-rm -rf $dst/ $dst-DOCS/
+rm -rf $dst/ $dst-DOCS/ $dst.tar*
 
 svn export $svnurl $dst/
+# branches should contain a VERSION file, but
+# "previews" generated from trunk need it.
 if ! test -e $dst/VERSION ; then
   echo $ver > $dst/VERSION
 fi
@@ -26,6 +28,15 @@
 git clone --depth 1 git://git.videolan.org/ffmpeg.git $dst/ffmpeg
 rm -rf $dst/.git* $dst/ffmpeg/.git*
 
+# create .tar.gz and .tar.xz files
 tar --owner=0 --group=0 -cf $dst.tar $dst/
 xz -k $dst.tar
 gzip -9 $dst.tar
+
+# generate checksums/signatures
+md5sum $dst.tar.xz > $dst.tar.xz.md5
+sha1sum $dst.tar.xz > $dst.tar.xz.sha1
+md5sum $dst.tar.gz > $dst.tar.gz.md5
+sha1sum $dst.tar.gz > $dst.tar.gz.sha1
+gpg -a --detach-sign $dst.tar.xz
+gpg -a --detach-sign $dst.tar.gz