[MPlayer-cvslog] CVS: main/TOOLS install-w32codecs.sh,1.1,1.2

Diego Biurrun CVS syncmail at mplayerhq.hu
Mon May 30 01:33:15 CEST 2005


CVS change done by Diego Biurrun CVS

Update of /cvsroot/mplayer/main/TOOLS
In directory mail:/var2/tmp/cvs-serv25047/TOOLS

Modified Files:
	install-w32codecs.sh 
Log Message:
Add a variable for the codec directory and set it to /usr/lib/codecs instead
of the old /usr/lib/win32.


Index: install-w32codecs.sh
===================================================================
RCS file: /cvsroot/mplayer/main/TOOLS/install-w32codecs.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- install-w32codecs.sh	29 May 2005 13:46:57 -0000	1.1
+++ install-w32codecs.sh	29 May 2005 23:33:13 -0000	1.2
@@ -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!"
 	




More information about the MPlayer-cvslog mailing list