annotate TOOLS/install-divx5.sh @ 15866:47fa825a5018

add vo_xv_enable_vsync() to xvmc it may not be needed but at least it shouldn't hurt to have it.
author iive
date Thu, 30 Jun 2005 10:57:56 +0000
parents 34cf1cf85ee3
children 45477f25175e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15586
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
1 #!/bin/sh
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
2
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
3 # Author: thuglife, mennucc1
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
4 #
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
5
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
6 set -e
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
7
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
8 site=http://download.divx.com/divx/
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
9 filename=divx4linux501-20020418.tgz
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
10
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
11 if [ `whoami` != root ]; then
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
12 echo "You must be a root to start this script. Login As root first!"
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
13 exit 1
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
14 else
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
15
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
16
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
17 case "$1" in
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
18 install)
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
19 mkdir /var/tmp/mplayer$$
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
20 cd /var/tmp/mplayer$$
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
21 wget $site/$filename
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
22 tar xzf $filename
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
23 cd divx4linux-20020418/
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
24 sh install.sh
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
25 cd ..
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
26 rm -rf $filename
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
27 rm -rf divx4linux-20020418/
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
28 echo "Installed Succesfully!"
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
29 rmdir /var/tmp/mplayer$$
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
30 ;;
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
31
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
32 uninstall)
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
33 rm -rf /usr/local/lib/libdivx{encore,decore}.so{,.0}
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
34 echo "Uninstalled Succesfully!"
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
35
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
36 ;;
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
37 *)
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
38 echo "Usage: {install|uninstall}"
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
39 exit 1
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
40
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
41 ;;
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
42 esac
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
43
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
44
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
45
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
46 exit 0
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
47
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
48 fi
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
49