wok-current diff get-java6-jre/stuff/get-java6-jre.sh @ rev 1409

get-java6-jre: allow any firefox version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 24 11:12:17 2008 +0000 (2008-09-24)
parents 53fe2dd7eeed
children c1b4ae2bdeca
line diff
     1.1 --- a/get-java6-jre/stuff/get-java6-jre.sh	Tue Jul 22 01:08:56 2008 +0200
     1.2 +++ b/get-java6-jre/stuff/get-java6-jre.sh	Wed Sep 24 11:12:17 2008 +0000
     1.3 @@ -61,10 +61,11 @@
     1.4  post_install()
     1.5  {
     1.6  	echo "Processing post install commands..."
     1.7 -	if [ -d /usr/lib/firefox-3.0.1 ]; then
     1.8 -		cd /usr/lib/firefox-3.0.1/plugins
     1.9 +	for i in /usr/lib/firefox*; do
    1.10 +		[ -d $i ] || continue
    1.11 +		cd $i/plugins
    1.12  		ln -s /usr/lib/java/jre\$VERSION/plugin/i386/ns7/libjavaplugin_oji.so
    1.13 -	fi
    1.14 +	done
    1.15  	
    1.16  	cd /usr/bin
    1.17  	ln -s /usr/lib/java/jre\$VERSION/bin/java 
    1.18 @@ -72,7 +73,7 @@
    1.19  
    1.20  post_remove()
    1.21  {
    1.22 -	rm -f /usr/lib/firefox-3.0.1/plugins/libjavaplugin_oji.so
    1.23 +	rm -f /usr/lib/firefox*/plugins/libjavaplugin_oji.so
    1.24  	rm -f /usr/bin/java
    1.25  }
    1.26  EOT