1 |
armin76 08/01/01 14:07:47 |
2 |
|
3 |
Modified: mozilla-launcher |
4 |
Log: |
5 |
Fix bug #178224, and bug #195726, remove mozilla stuff, fix copyright |
6 |
|
7 |
Revision Changes Path |
8 |
1.57 mozilla-launcher/mozilla-launcher |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-src/mozilla-launcher/mozilla-launcher?rev=1.57&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-src/mozilla-launcher/mozilla-launcher?rev=1.57&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-src/mozilla-launcher/mozilla-launcher?r1=1.56&r2=1.57 |
13 |
|
14 |
Index: mozilla-launcher |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-src/mozilla-launcher/mozilla-launcher,v |
17 |
retrieving revision 1.56 |
18 |
retrieving revision 1.57 |
19 |
diff -u -r1.56 -r1.57 |
20 |
--- mozilla-launcher 26 Dec 2006 10:10:55 -0000 1.56 |
21 |
+++ mozilla-launcher 1 Jan 2008 14:07:46 -0000 1.57 |
22 |
@@ -1,18 +1,18 @@ |
23 |
#!/bin/bash |
24 |
-# $Header: /var/cvsroot/gentoo-src/mozilla-launcher/mozilla-launcher,v 1.56 2006/12/26 10:10:55 kloeri Exp $ |
25 |
+# $Header: /var/cvsroot/gentoo-src/mozilla-launcher/mozilla-launcher,v 1.57 2008/01/01 14:07:46 armin76 Exp $ |
26 |
# |
27 |
# Portions of this file are extracted from the mozilla.org distributed scripts. |
28 |
# Those portions are Copyright (C) 1998 Netscape Communmications Corporation and |
29 |
-# released under the NPL as detailed in /usr/lib/mozilla/mozilla, |
30 |
-# /usr/lib/MozillaFirefox/firefox and /usr/lib/MozillaThunderbird/thunderbird. |
31 |
+# released under the NPL as detailed in |
32 |
+# /usr/lib/mozilla-firefox/firefox and /usr/lib/mozilla-thunderbird/thunderbird. |
33 |
# |
34 |
-# The remainder of this file is Copyright 1999-2005 Gentoo Foundation |
35 |
+# The remainder of this file is Copyright 1999-2008 Gentoo Foundation |
36 |
# Distributed under the terms of the GNU General Public License v2 |
37 |
|
38 |
: ${MOZILLA_LAUNCHER_DEBUG:=false} |
39 |
|
40 |
# Make sure necessary progs are in the PATH |
41 |
-PATH=/usr/bin:/bin:/usr/X11R6/bin:$PATH |
42 |
+PATH=/usr/bin:/bin:$PATH |
43 |
unset GREP_OPTIONS |
44 |
|
45 |
main() { |
46 |
@@ -133,31 +133,26 @@ |
47 |
unset MOZILLA_LIBDIR |
48 |
fi |
49 |
|
50 |
- # Support mozilla, mozilla-bin, firefox, firefox-bin, thunderbird, |
51 |
- # thunderbird-bin! |
52 |
+ # Support mozilla-firefox, mozilla-firefox-bin, mozilla-thunderbird, |
53 |
+ # mozilla-thunderbird-bin, mozilla-sunbird, mozilla-sunbird-bin, |
54 |
+ # xulrunner! |
55 |
# This case statement does the setup for source-based browsers and |
56 |
# just drops through for binary-based browsers. |
57 |
case $zero in |
58 |
*fox) |
59 |
- export MOZILLA_FIVE_HOME=${MOZILLA_LIBDIR:-"/usr/lib/MozillaFirefox"} |
60 |
+ export MOZILLA_FIVE_HOME=${MOZILLA_LIBDIR:-"/usr/lib/mozilla-firefox"} |
61 |
remote=$MOZILLA_FIVE_HOME/mozilla-xremote-client |
62 |
mozbin=$MOZILLA_FIVE_HOME/firefox-bin |
63 |
;; |
64 |
|
65 |
- *mozilla) |
66 |
- export MOZILLA_FIVE_HOME=${MOZILLA_LIBDIR:-"/usr/lib/mozilla"} |
67 |
- remote=$MOZILLA_FIVE_HOME/mozilla-xremote-client |
68 |
- mozbin=$MOZILLA_FIVE_HOME/mozilla-bin |
69 |
- ;; |
70 |
- |
71 |
*sunbird) |
72 |
- export MOZILLA_FIVE_HOME=${MOZILLA_LIBDIR:-"/usr/lib/MozillaSunbird"} |
73 |
+ export MOZILLA_FIVE_HOME=${MOZILLA_LIBDIR:-"/usr/lib/mozilla-sunbird"} |
74 |
remote=$MOZILLA_FIVE_HOME/mozilla-xremote-client |
75 |
mozbin=$MOZILLA_FIVE_HOME/sunbird-bin |
76 |
;; |
77 |
|
78 |
*thunderbird) |
79 |
- export MOZILLA_FIVE_HOME=${MOZILLA_LIBDIR:-"/usr/lib/MozillaThunderbird"} |
80 |
+ export MOZILLA_FIVE_HOME=${MOZILLA_LIBDIR:-"/usr/lib/mozilla-thunderbird"} |
81 |
remote=$MOZILLA_FIVE_HOME/mozilla-xremote-client |
82 |
mozbin=$MOZILLA_FIVE_HOME/thunderbird-bin |
83 |
;; |
84 |
@@ -197,12 +192,6 @@ |
85 |
mozbin=$MOZILLA_FIVE_HOME/firefox-bin |
86 |
;; |
87 |
|
88 |
- *mozilla-bin) |
89 |
- export MOZILLA_FIVE_HOME=${MOZILLA_LIBDIR:-"/opt/mozilla"} |
90 |
- remote=$MOZILLA_FIVE_HOME/mozilla-xremote-client |
91 |
- mozbin=$MOZILLA_FIVE_HOME/mozilla-bin |
92 |
- ;; |
93 |
- |
94 |
*sunbird-bin) |
95 |
export MOZILLA_FIVE_HOME=${MOZILLA_LIBDIR:-"/opt/sunbird"} |
96 |
remote=$MOZILLA_FIVE_HOME/mozilla-xremote-client |
97 |
@@ -408,6 +397,7 @@ |
98 |
# than the current one. http://bugs.gentoo.org/show_bug.cgi?id=59849 |
99 |
f=$(find ~/{.,.mozilla/}${zero%-bin} ! -uid ${EUID} 2>/dev/null | head -n10) |
100 |
if [[ -n ${f} ]]; then |
101 |
+ [[ ${zero} == "thunderbird" ]] && hint="thunderbird" || hint="mozilla" |
102 |
cat <<EOF |
103 |
Error launching ${zero}: |
104 |
|
105 |
@@ -419,7 +409,7 @@ |
106 |
(( $(echo "${f}" | wc -l) == 10 )) && echo " ..." |
107 |
echo |
108 |
echo "You can fix this problem by running the following:" |
109 |
- echo " su -c 'chown -R $(id -un):$(id -gn) $HOME/.mozilla'" |
110 |
+ echo " su -c 'chown -R $(id -un):$(id -gn) $HOME/.${hint}'" |
111 |
echo |
112 |
return 101 |
113 |
fi >&2 |
114 |
@@ -536,14 +526,9 @@ |
115 |
return 1 |
116 |
fi |
117 |
|
118 |
- # mozilla (seamonkey) doesn't support -register yet. Until it does, use the |
119 |
- # mozilla-rebuild-databases.pl script instead |
120 |
- if [[ ${zero} == mozilla ]]; then |
121 |
- echo "Running mozilla-rebuild-databases.pl" |
122 |
- umask 022 |
123 |
- ${MOZILLA_FIVE_HOME}/mozilla-rebuild-databases.pl |
124 |
- return $? |
125 |
- elif [[ ${zero} == seamonkey ]]; then |
126 |
+ # seamonkey doesn't support -register yet. Until it does, use the |
127 |
+ # seamonkey-rebuild-databases.pl script instead |
128 |
+ if [[ ${zero} == seamonkey ]]; then |
129 |
echo "Running seamonkey-rebuild-databases.pl" |
130 |
umask 022 |
131 |
${MOZILLA_FIVE_HOME}/seamonkey-rebuild-databases.pl |
132 |
@@ -612,8 +597,8 @@ |
133 |
|
134 |
sanitize_url() |
135 |
{ |
136 |
- # We only really need to filter '(', ')' and ',' as these break openURL |
137 |
- echo $1 | sed -e's/,/%2c/g' -e's/(/%28/g' -e's/)/%29/g' |
138 |
+ # We only really need to filter '(' and ')' as these break openURL |
139 |
+ echo $1 | sed -e's/(/%28/g' -e's/)/%29/g' |
140 |
} |
141 |
|
142 |
# Call the main sub, which is defined at the top of this script |
143 |
|
144 |
|
145 |
|
146 |
-- |
147 |
gentoo-commits@g.o mailing list |