ulvis.paste.net

Paste Search Dynamic
Recent pastes
/release.sh
  1. #!/bin/bash
  2. # will create checkouts and tarballs in the current dir
  3. ver=1.1
  4. dst=MPlayer-$ver
  5. svnurl=svn://svn.mplayerhq.hu/mplayer/trunk
  6. #svnurl=svn://svn.mplayerhq.hu/mplayer/branches/$ver
  7.  
  8. rm -rf $dst/ $dst-DOCS/ $dst.tar*
  9.  
  10. svn export $svnurl $dst/
  11. # branches should contain a VERSION file, but
  12. # "previews" generated from trunk need it.
  13. if ! test -e $dst/VERSION ; then
  14.   echo $ver > $dst/VERSION
  15. fi
  16.  
  17. # create HTML docs
  18. cp -a $dst/ $dst-DOCS/
  19. pushd $dst-DOCS/
  20. mkdir -p ffmpeg/libavutil
  21. ./configure --yasm='' --language=all
  22. make html-chunked
  23. popd
  24. mv $dst-DOCS/DOCS/HTML $dst/DOCS
  25. rm -rf $dst-DOCS/
  26.  
  27. # git archive unfortunately is refused
  28. git clone --depth 1 git://source.ffmpeg.org/ffmpeg.git $dst/ffmpeg
  29. rm -rf $dst/.git* $dst/ffmpeg/.git*
  30.  
  31. # create .tar.gz and .tar.xz files
  32. tar --owner=0 --group=0 -cf $dst.tar $dst/
  33. xz -k $dst.tar
  34. gzip -9 $dst.tar
  35.  
  36. # generate checksums/signatures
  37. md5sum $dst.tar.xz > $dst.tar.xz.md5
  38. sha1sum $dst.tar.xz > $dst.tar.xz.sha1
  39. md5sum $dst.tar.gz > $dst.tar.gz.md5
  40. sha1sum $dst.tar.gz > $dst.tar.gz.sha1
  41. gpg -a --detach-sign $dst.tar.xz
  42. gpg -a --detach-sign $dst.tar.gz
Parsed in 0.009 seconds