summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-29 13:46:57 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-29 13:46:57 +0000
commitbf7301cf25ed6ea3cf404691e24ef38c7e4f9c1a (patch)
tree2d8464312c4f6fad4cfb4d2e1d8fc5c73fbe03a3
parent83b3c822becab58bdf25bcef7c247d674908ddcb (diff)
downloadmpv-bf7301cf25ed6ea3cf404691e24ef38c7e4f9c1a.tar.bz2
mpv-bf7301cf25ed6ea3cf404691e24ef38c7e4f9c1a.tar.xz
old scripts from early debian package
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15587 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-xTOOLS/install-divx5.sh49
-rwxr-xr-xTOOLS/install-w32codecs.sh138
2 files changed, 187 insertions, 0 deletions
diff --git a/TOOLS/install-divx5.sh b/TOOLS/install-divx5.sh
new file mode 100755
index 0000000000..5cfff89fd6
--- /dev/null
+++ b/TOOLS/install-divx5.sh
@@ -0,0 +1,49 @@
+#!/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
+
diff --git a/TOOLS/install-w32codecs.sh b/TOOLS/install-w32codecs.sh
new file mode 100755
index 0000000000..42792361e7
--- /dev/null
+++ b/TOOLS/install-w32codecs.sh
@@ -0,0 +1,138 @@
+#!/bin/sh
+
+# Author: thuglife, mennucc1
+#
+
+set -e
+
+arch=$(dpkg --print-installation-architecture)
+
+[ -d /usr/lib/win32 ] || mkdir -v /usr/lib/win32
+cd /usr/lib/win32
+[ -d mplayer_win32_codecs ] || mkdir -v mplayer_win32_codecs
+
+INSTALL () {
+ filename="$1"
+ site="$2"
+ url="$site/$filename"
+
+ cd /usr/lib/win32/mplayer_win32_codecs
+
+ if [ -r $filename.list ] ; then
+ #if we stop the script, we don't want to redownload things
+ #fixme we should check timestamps
+ echo you have already downloaded and installed $filename
+ else
+ wget $url || return 1
+ case "$filename" in
+ *.tar.gz)
+ tar xvzf $filename > $filename.list
+ rm $filename
+ ;;
+ *.tgz)
+ tar xvzf $filename > $filename.list
+ rm $filename
+ ;;
+ *.tar.bz2)
+ tar --bzip2 -xvf $filename > $filename.list
+ rm $filename
+ ;;
+ esac
+ cd ..
+ ln -sbf mplayer_win32_codecs/*/* .
+ echo "Installed Succesfully!"
+ fi
+}
+
+
+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)
+ if [ "$arch" = "i386" ]; then
+
+ mainurl=''
+
+ pref=/usr/lib/win32/mplayer_win32_codecs/bestsite
+
+ #distribute the load
+ if [ -r $pref ] ; then
+ mainurl=`cat $pref `
+ else
+ if [ -f /usr/bin/netselect ] ; then
+ echo Choosing best mirror using netselect....
+ /usr/bin/netselect \
+ http://www1.mplayerhq.hu/MPlayer/releases/codecs/ \
+ http://www2.mplayerhq.hu/MPlayer/releases/codecs/ \
+ http://ftp.lug.udel.edu/MPlayer/releases/codecs/ \
+ | awk '{print $2}' > $pref
+ mainurl=`cat $pref `
+ else
+ echo "(If you install 'netselect', it will select the best mirror for you"
+ echo " you may wish to stop this script and rerun after installation)"
+ sleep 2
+ fi
+ fi
+
+ #sanity check, in case netselect fails
+ mainhost=`echo $mainurl | sed 's|http://||;s|ftp://||;s|/.*||g'`
+ echo Test if $mainhost exists and is ping-able...
+ if [ "$mainurl" = '' ] || ! ping -c1 "$mainhost" > /dev/null ; then
+ domain=`hostname -f | sed 's/.*\.//g' `
+ mainurl=http://www1.mplayerhq.hu/MPlayer/releases/codecs/
+ if [ "$domain" = 'edu' -o "$domain" = 'com' ] ; then
+ mainurl=http://ftp.lug.udel.edu/MPlayer/releases/codecs/
+ fi
+ if [ "$domain" = 'de' -o "$domain" = 'it' ] ; then
+ mainurl=http://www2.mplayerhq.hu/MPlayer/releases/codecs/
+ fi
+ fi
+
+ #INSTALL win32.tar.gz http://ers.linuxforum.hu/
+
+ INSTALL win32codecs-lite.tar.bz2 $mainurl
+ #INSTALL w32codec.tar.bz2 http://www.mplayerhq.hu/MPlayer/releases/
+ INSTALL rp9codecs.tar.bz2 $mainurl
+ INSTALL qt6dlls.tar.bz2 $mainurl
+ elif [ "$arch" = "alpha" ]; then
+ INSTALL rp8codecs-alpha.tar.bz2 $mainurl
+ elif [ "$arch" = "powerpc" ]; then
+ INSTALL rp8codecs-ppc.tar.bz2 $mainurl
+ INSTALL xanimdlls-ppc.tar.bz2 $mainurl
+ else
+ echo "Sorry, no codecs for your arch. Sorry dude :("
+ exit 1
+
+ fi
+
+ ;;
+
+ uninstall)
+ cd /usr/lib/win32/
+ rm -rf mplayer_win32_codecs
+ #FIXME we need a better clean system
+ if [ -r /usr/bin/symlinks ] ; then
+ symlinks -d .
+ else
+ echo "please install the package 'symlinks' and run 'symlinks -d /usr/lib/win32' "
+ fi
+ echo "Uninstalled Succesfully!"
+
+ ;;
+
+ *)
+ echo "Usage: {install|uninstall}"
+ exit 1
+
+ ;;
+
+esac
+
+
+exit 0
+
+fi
+