changeset 15592:aadde9ec9058

Add a variable for the codec directory and set it to /usr/lib/codecs instead of the old /usr/lib/win32.
author diego
date Sun, 29 May 2005 23:33:13 +0000
parents 3d32bc09b975
children a7abe85e8b41
files TOOLS/install-w32codecs.sh
diffstat 1 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/TOOLS/install-w32codecs.sh	Sun May 29 23:16:22 2005 +0000
+++ b/TOOLS/install-w32codecs.sh	Sun May 29 23:33:13 2005 +0000
@@ -7,8 +7,10 @@
 
 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 @@
     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 @@
      
    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 @@
 	;;
     
     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!"