# DivX for Linux 5.0.5
# ====================
# Note: this is free for personal use, but not for commercial use. See the
# web site for details.
# If you had previously installed divx4linux through the mplayer howto, run
# this to clear out the old tarball and source:
test -d ~/installed/mplayer && rm -f ~/installed/mplayer/divx4linux-*
test -d ~/src/mplayer &&
find ~/src/mplayer -type d -maxdepth 1 -name "divx4linux-*" \
-exec rm -r {} \;
cd
test -f installed/divx4linux-std-20030428.tar.gz &&
mv installed/divx4linux-std-20030428.tar.gz .
test ! -f divx4linux-std-20030428.tar.gz &&
wget http://download.divx.com/divx/divx4linux-std-20030428.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "divx4linux-*" -exec rm -r {} \;
tar xzvf ~/divx4linux-std-20030428.tar.gz
cd divx4linux-20030428
test $UID = 0 && chown -R root:root .
su -c "./install.sh"
cd
mkdir -p -m 0700 installed
rm -f installed/divx4linux-*.tar.*
mv divx4linux-std-20030428.tar.gz installed/