summaryrefslogtreecommitdiffstats
path: root/TOOLS/install-divx5.sh
blob: 5cfff89fd693485f3f2b02b38ddaf24283a8a7f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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