mirror of
https://github.com/mpv-player/mpv
synced 2024-10-30 04:46:41 +01:00
bf7301cf25
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15587 b3059339-0415-0410-9bf9-f77b7e298cf2
50 lines
794 B
Bash
Executable File
50 lines
794 B
Bash
Executable File
#!/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
|
|
|