mplayer/mplayer-autoupdate

13 lines
339 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
version=$1
[ "${version}" ] || exit 1
revision=`echo $version | cut -d+ -f2 | cut -d. -f2`
[ "${revision}" ] || exit 1
svn co svn://svn.mplayerhq.hu/mplayer/trunk MPlayer-${version}
cd MPlayer-${version}
svn update -r ${revision}
rm -rf .svn
cd ..
tar cJf MPlayer-${version}.tar.xz MPlayer-${version}
rm -rf MPlayer-${version}