view TOOLS/install-divx5.sh @ 19831:a9d072fde78f

r19829: Improve TrueType font installation section r19828: Move subtitles and OSD section from the installation to the usage chapter r19827: Slightly restructure font installation section r19825: Truetype fonts now preferred over bitmap fonts, rewrite the font installation r19823: Remove mpsub section, the format is documented in DOCS/tech r19820: Marillat packages binary codecs, not bitmap fonts
author voroshil
date Thu, 14 Sep 2006 09:41:06 +0000
parents 45477f25175e
children
line wrap: on
line source

#!/bin/sh

# Author:  thuglife, mennucc1
#

set -e

site=http://download.divx.com/divx/
packagename=divx4linux501-20020418
filename=$packagename.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 $packagename/
        sh install.sh
        cd ..
        rm -rf $filename
        rm -rf $packagename/
        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