summaryrefslogtreecommitdiffstats
path: root/TOOLS/install-w32codecs.sh
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-29 23:33:13 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-29 23:33:13 +0000
commita7d23c26a581ad7f4a16a729c637f452a260a26a (patch)
tree420f6452b36d2f373d8cc15926600f6578ccaa7e /TOOLS/install-w32codecs.sh
parent449e6d7dffd5bfcec0cce7e59241cfb325041423 (diff)
downloadmpv-a7d23c26a581ad7f4a16a729c637f452a260a26a.tar.bz2
mpv-a7d23c26a581ad7f4a16a729c637f452a260a26a.tar.xz
Add a variable for the codec directory and set it to /usr/lib/codecs instead
of the old /usr/lib/win32. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15593 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'TOOLS/install-w32codecs.sh')
-rwxr-xr-xTOOLS/install-w32codecs.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/TOOLS/install-w32codecs.sh b/TOOLS/install-w32codecs.sh
index 42792361e7..681a7b3d03 100755
--- a/TOOLS/install-w32codecs.sh
+++ b/TOOLS/install-w32codecs.sh
@@ -7,8 +7,10 @@ set -e
arch=$(dpkg --print-installation-architecture)
-[ -d /usr/lib/win32 ] || mkdir -v /usr/lib/win32
-cd /usr/lib/win32
+codecsdir=/usr/lib/codecs
+
+[ -d $codecsdir ] || mkdir -v $codecsdir
+cd $codecsdir
[ -d mplayer_win32_codecs ] || mkdir -v mplayer_win32_codecs
INSTALL () {
@@ -16,7 +18,7 @@ INSTALL () {
site="$2"
url="$site/$filename"
- cd /usr/lib/win32/mplayer_win32_codecs
+ cd $codecsdir/mplayer_win32_codecs
if [ -r $filename.list ] ; then
#if we stop the script, we don't want to redownload things
@@ -56,7 +58,7 @@ case "$1" in
mainurl=''
- pref=/usr/lib/win32/mplayer_win32_codecs/bestsite
+ pref=$codecsdir/mplayer_win32_codecs/bestsite
#distribute the load
if [ -r $pref ] ; then
@@ -111,13 +113,13 @@ case "$1" in
;;
uninstall)
- cd /usr/lib/win32/
+ cd $codecsdir
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' "
+ echo "please install the package 'symlinks' and run 'symlinks -d $codecsdir' "
fi
echo "Uninstalled Succesfully!"