blob: b13e0b2a87bcaf1a52fe2523fa92bef965b888f5 (
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
37
38
39
40
|
$FreeBSD$
--- src/galeon.in 2001/05/15 11:38:39 1.1
+++ src/galeon.in 2001/05/15 11:42:43
@@ -1,19 +1,15 @@
#!/bin/sh
-dist_bin=`dirname $0`
-
if test -n "$MOZILLA_FIVE_HOME"; then
MOZILLA_HOME=$MOZILLA_FIVE_HOME
-elif [ -f @MOZILLA_HOME@/chrome/embed.jar ]; then
+elif [ -f @MOZILLA_HOME@/libgtkembedmoz.so ]; then
MOZILLA_HOME=@MOZILLA_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
@@ -34,6 +30,6 @@
if [ -f ./galeon-bin ]; then
exec ./galeon-bin "$@"
else
-exec $dist_bin/galeon-bin "$@"
+exec %%PREFIX%%/bin/galeon-bin "$@"
fi
|