comparison 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
comparison
equal deleted inserted replaced
15585:281d155fb37f 15586:34cf1cf85ee3
1 #!/bin/sh
2
3 # Author: thuglife, mennucc1
4 #
5
6 set -e
7
8 site=http://download.divx.com/divx/
9 filename=divx4linux501-20020418.tgz
10
11 if [ `whoami` != root ]; then
12 echo "You must be a root to start this script. Login As root first!"
13 exit 1
14 else
15
16
17 case "$1" in
18 install)
19 mkdir /var/tmp/mplayer$$
20 cd /var/tmp/mplayer$$
21 wget $site/$filename
22 tar xzf $filename
23 cd divx4linux-20020418/
24 sh install.sh
25 cd ..
26 rm -rf $filename
27 rm -rf divx4linux-20020418/
28 echo "Installed Succesfully!"
29 rmdir /var/tmp/mplayer$$
30 ;;
31
32 uninstall)
33 rm -rf /usr/local/lib/libdivx{encore,decore}.so{,.0}
34 echo "Uninstalled Succesfully!"
35
36 ;;
37 *)
38 echo "Usage: {install|uninstall}"
39 exit 1
40
41 ;;
42 esac
43
44
45
46 exit 0
47
48 fi
49