summaryrefslogtreecommitdiff
path: root/www/galeon2/files/patch-ab
blob: 79e523a1f68c721ad8b5604c7c42fcc3ccbc69ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$FreeBSD$

--- src/galeon.orig	Mon Apr 30 11:46:07 2001
+++ src/galeon	Thu May  3 14:37:04 2001
@@ -1,17 +1,13 @@
 #!/bin/sh
 
-dist_bin=`dirname $0`
-
 if test -n "$MOZILLA_FIVE_HOME"; then
 	MOZILLA_HOME=$MOZILLA_FIVE_HOME
-elif [ -f /usr/local/mozilla/chrome/embed.jar ]; then
-	MOZILLA_HOME=/usr/local/mozilla
-elif [ -f /usr/lib/mozilla/chrome/embed.jar ]; then
-	MOZILLA_HOME=/usr/lib/mozilla
-elif [ -f /opt/mozilla/chrome/embed.jar ]; then
-	MOZILLA_HOME=/opt/mozilla
-elif [ -f /usr/lib/mozilla-0.8.1/chrome/embed.jar ]; then
-	MOZILLA_HOME=/usr/lib/mozilla-0.8.1/
+elif [ -f %%LOCALBASE%%/lib/%%MOZILLA%%/libgtkembedmoz.so ]; then
+	MOZILLA_HOME=%%LOCALBASE%%/lib/%%MOZILLA%%
+elif [ -f %%X11BASE%%/lib/%%MOZILLA%%/libgtkembedmoz.so ]; then
+	MOZILLA_HOME=%%X11BASE%%/lib/%%MOZILLA%%
+elif [ -f %%PREFIX%%/lib/%%MOZILLA%%/libgtkembedmoz.so ]; then
+	MOZILLA_HOME=%%PREFIX%%/lib/%%MOZILLA%%
 else
 	echo "Cannot find mozilla installation directory. Please set MOZILLA_FIVE_HOME to your mozilla directory"
 	exit
@@ -31,5 +27,5 @@
 if [ -f ./galeon-bin ]; then
 exec ./galeon-bin "$@"
 else
-exec $dist_bin/galeon-bin "$@"
+exec %%PREFIX%%/bin/galeon-bin "$@"
 fi