Mercurial > mplayer.hg
diff TOOLS/install-divx5.sh @ 15586:34cf1cf85ee3
old scripts from early debian package
author | alex |
---|---|
date | Sun, 29 May 2005 13:46:57 +0000 |
parents | |
children | 45477f25175e |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TOOLS/install-divx5.sh Sun May 29 13:46:57 2005 +0000 @@ -0,0 +1,49 @@ +#!/bin/sh + +# Author: thuglife, mennucc1 +# + +set -e + +site=http://download.divx.com/divx/ +filename=divx4linux501-20020418.tgz + +if [ `whoami` != root ]; then + echo "You must be a root to start this script. Login As root first!" + exit 1 +else + + +case "$1" in + install) + mkdir /var/tmp/mplayer$$ + cd /var/tmp/mplayer$$ + wget $site/$filename + tar xzf $filename + cd divx4linux-20020418/ + sh install.sh + cd .. + rm -rf $filename + rm -rf divx4linux-20020418/ + echo "Installed Succesfully!" + rmdir /var/tmp/mplayer$$ + ;; + + uninstall) + rm -rf /usr/local/lib/libdivx{encore,decore}.so{,.0} + echo "Uninstalled Succesfully!" + + ;; + *) + echo "Usage: {install|uninstall}" + exit 1 + + ;; +esac + + + +exit 0 + +fi +