3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 # This file incorporates work covered by the following license notice:
11 # Licensed to the Apache Software Foundation (ASF) under one or more
12 # contributor license agreements. See the NOTICE file distributed
13 # with this work for additional information regarding copyright
14 # ownership. The ASF licenses this file to you under the Apache
15 # License, Version 2.0 (the "License"); you may not use this file
16 # except in compliance with the License. You may obtain a copy of
17 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 SAL_ENABLE_FILE_LOCKING
=1
22 export SAL_ENABLE_FILE_LOCKING
24 # resolve installation directory
27 sd_basename
=`basename "$0"`
28 sd_script
=`ls -l "$0" | sed "s/.*${sd_basename} -> //g"`
30 cd "`dirname "$sd_script"`"
40 sd_prog2
="$sd_prog/../ure-link/lib"
41 LD_LIBRARY_PATH
=$sd_prog1:$sd_prog2${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
42 export LD_LIBRARY_PATH
46 sd_prog2
="$sd_prog/../ure-link/lib"
47 LIBPATH
=$sd_prog1:$sd_prog2${LIBPATH:+:$LIBPATH}
52 #collect all bootstrap variables specified on the command line
53 #so that they can be passed as arguments to javaldx later on
57 -env:*) BOOTSTRAPVARS
=$BOOTSTRAPVARS" ""$arg";;
61 # extend the ld_library_path for java: javaldx checks the sofficerc for us
62 if [ -x "$sd_prog/../ure-link/bin/javaldx" ] ; then
63 my_path
=`"$sd_prog/../ure-link/bin/javaldx" $BOOTSTRAPVARS \
64 "-env:INIFILENAME=vnd.sun.star.pathname:$sd_prog/redirectrc"`
65 if [ -n "$my_path" ] ; then
66 sd_platform
=`uname -s`
69 LIBPATH
=$my_path${LIBPATH:+:$LIBPATH}
73 LD_LIBRARY_PATH
=$my_path${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
74 export LD_LIBRARY_PATH
80 # uncomment line below to disable anti aliasing of fonts
81 # SAL_ANTIALIAS_DISABLE=true; export SAL_ANTIALIAS_DISABLE
83 # Set PATH so that crash_report is found:
84 PATH
=$sd_prog${PATH+:$PATH}
88 exec "$sd_prog/spadmin.bin" "$@" \
89 "-env:INIFILENAME=vnd.sun.star.pathname:$sd_prog/redirectrc"