#!/bin/bash
# will create checkouts and tarballs in the current dir
ver=1.5
dst=MPlayer-$ver
svnurl=svn://svn.mplayerhq.hu/mplayer/trunk
#svnurl=svn://svn.mplayerhq.hu/mplayer/branches/$ver
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
# create HTML docs
cp -a $dst/ $dst-DOCS/
pushd $dst-DOCS/
mkdir -p ffmpeg/libavutil
/configure --yasm='' --language=all
make html-chunked
popd
mv $dst-DOCS/DOCS/HTML $dst/DOCS
rm -rf $dst-DOCS/