annotate TOOLS/install-divx5.sh @ 17517:07d73385c036

when linking to external libav* try using pkg-config first
author nicodvb
date Mon, 30 Jan 2006 20:58:11 +0000
parents 45477f25175e
children
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/
17053
45477f25175e some comments and simplification
alex
parents: 15586
diff changeset
9 packagename=divx4linux501-20020418
45477f25175e some comments and simplification
alex
parents: 15586
diff changeset
10 filename=$packagename.tgz
15586
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
11
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
12 if [ `whoami` != root ]; then
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
13 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
14 exit 1
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
15 else
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
16
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
17
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
18 case "$1" in
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
19 install)
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
20 mkdir /var/tmp/mplayer$$
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
21 cd /var/tmp/mplayer$$
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
22 wget $site/$filename
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
23 tar xzf $filename
17053
45477f25175e some comments and simplification
alex
parents: 15586
diff changeset
24 cd $packagename/
15586
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
25 sh install.sh
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
26 cd ..
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
27 rm -rf $filename
17053
45477f25175e some comments and simplification
alex
parents: 15586
diff changeset
28 rm -rf $packagename/
15586
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
29 echo "Installed Succesfully!"
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
30 rmdir /var/tmp/mplayer$$
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
31 ;;
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
32
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
33 uninstall)
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
34 rm -rf /usr/local/lib/libdivx{encore,decore}.so{,.0}
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
35 echo "Uninstalled Succesfully!"
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 *)
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
39 echo "Usage: {install|uninstall}"
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
40 exit 1
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
41
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
42 ;;
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
43 esac
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
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
47 exit 0
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
48
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
49 fi
34cf1cf85ee3 old scripts from early debian package
alex
parents:
diff changeset
50