equal
deleted
inserted
replaced
18 # The Initial Developer of the Original Code is |
18 # The Initial Developer of the Original Code is |
19 # Netscape Communications Corporation. |
19 # Netscape Communications Corporation. |
20 # Portions created by the Initial Developer are Copyright (C) 1998 |
20 # Portions created by the Initial Developer are Copyright (C) 1998 |
21 # the Initial Developer. All Rights Reserved. |
21 # the Initial Developer. All Rights Reserved. |
22 # |
22 # |
23 # Contributor(s): |
23 # Contributor(s): |
24 # Wolfgang Rosenauer <wolfgang.rosenauer@suse.de> |
24 # Wolfgang Rosenauer <wolfgang.rosenauer@suse.de> |
25 # <wr@rosenauer.org> |
25 # <wr@rosenauer.org> |
26 # |
26 # |
27 # Alternatively, the contents of this file may be used under the terms of |
27 # Alternatively, the contents of this file may be used under the terms of |
28 # either the GNU General Public License Version 2 or later (the "GPL"), or |
28 # either the GNU General Public License Version 2 or later (the "GPL"), or |
36 # the provisions above, a recipient may use your version of this file under |
36 # the provisions above, a recipient may use your version of this file under |
37 # the terms of any one of the MPL, the GPL or the LGPL. |
37 # the terms of any one of the MPL, the GPL or the LGPL. |
38 # |
38 # |
39 # ***** END LICENSE BLOCK ***** |
39 # ***** END LICENSE BLOCK ***** |
40 |
40 |
41 ## |
41 ## |
42 ## Usage: |
42 ## Usage: |
43 ## |
43 ## |
44 ## $ mozilla [args] |
44 ## $ mozilla [args] |
45 ## |
45 ## |
46 ## This script is meant to run a mozilla program from the mozilla |
46 ## This script is meant to run a mozilla program from the mozilla |
57 MOZ_DIST_BIN="%PREFIX" |
57 MOZ_DIST_BIN="%PREFIX" |
58 MOZ_DIST_LIB="%PROGDIR" |
58 MOZ_DIST_LIB="%PROGDIR" |
59 MOZ_APPNAME="%APPNAME" |
59 MOZ_APPNAME="%APPNAME" |
60 MOZ_PROGRAM="$MOZ_DIST_LIB/$MOZ_APPNAME" |
60 MOZ_PROGRAM="$MOZ_DIST_LIB/$MOZ_APPNAME" |
61 |
61 |
62 export MOZ_APP_LAUNCHER="$MOZ_DIST_LIB/$MOZ_APPNAME.sh" |
62 MOZ_APP_LAUNCHER="$MOZ_DIST_LIB/$MOZ_APPNAME.sh" |
|
63 if [ "$0" = "$MOZ_APP_LAUNCHER" ]; then |
|
64 [ -h "/usr/bin/$MOZ_APPNAME" ] && \ |
|
65 _link=$(readlink -f "/usr/bin/$MOZ_APPNAME") |
|
66 if [ "$_link" = "$MOZ_APP_LAUNCHER" ]; then |
|
67 export MOZ_APP_LAUNCHER="/usr/bin/$MOZ_APPNAME" |
|
68 fi |
|
69 else |
|
70 export MOZ_APP_LAUNCHER="/usr/bin/$MOZ_APPNAME" |
|
71 fi |
63 |
72 |
64 mozilla_lib=`file $MOZ_PROGRAM` |
73 mozilla_lib=`file $MOZ_PROGRAM` |
65 LIB=lib |
74 LIB=lib |
66 echo $mozilla_lib | grep -q -E 'x86-64|s390x|64-bit.PowerPC' && LIB=lib64 |
75 echo $mozilla_lib | grep -q -E 'x86-64|s390x|64-bit.PowerPC' && LIB=lib64 |
67 |
76 |