2 #*************************************************************************
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 # Copyright 2008 by Sun Microsystems, Inc.
8 # OpenOffice.org - a multi-platform office productivity suite
10 # $RCSfile: spadmin.sh,v $
14 # This file is part of OpenOffice.org.
16 # OpenOffice.org is free software: you can redistribute it and/or modify
17 # it under the terms of the GNU Lesser General Public License version 3
18 # only, as published by the Free Software Foundation.
20 # OpenOffice.org is distributed in the hope that it will be useful,
21 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 # GNU Lesser General Public License version 3 for more details
24 # (a copy is included in the LICENSE file that accompanied this code).
26 # You should have received a copy of the GNU Lesser General Public License
27 # version 3 along with OpenOffice.org. If not, see
28 # <http://www.openoffice.org/license.html>
29 # for a copy of the LGPLv3 License.
31 #*************************************************************************
34 SAL_ENABLE_FILE_LOCKING
=1
35 export SAL_ENABLE_FILE_LOCKING
37 # resolve installation directory
40 sd_basename
=`basename "$0"`
41 sd_script
=`ls -l "$0" | sed "s/.*${sd_basename} -> //g"`
43 cd "`dirname "$sd_script"`"
50 #collect all bootstrap variables specified on the command line
51 #so that they can be passed as arguments to javaldx later on
55 -env:*) BOOTSTRAPVARS
=$BOOTSTRAPVARS" ""$arg";;
59 # extend the ld_library_path for java: javaldx checks the sofficerc for us
60 if [ -x "$sd_prog/../basis-link/ure-link/bin/javaldx" ] ; then
61 my_path
=`"$sd_prog/../basis-link/ure-link/bin/javaldx" $BOOTSTRAPVARS \
62 "-env:INIFILENAME=vnd.sun.star.pathname:$sd_prog/redirectrc"`
63 if [ -n "$my_path" ] ; then
64 LD_LIBRARY_PATH
=$my_path${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}
65 export LD_LIBRARY_PATH
71 # uncomment line below to disable anti aliasing of fonts
72 # SAL_ANTIALIAS_DISABLE=true; export SAL_ANTIALIAS_DISABLE
74 # Set PATH so that crash_report is found:
75 PATH
=$sd_prog${PATH+:$PATH}
79 exec "$sd_prog/../basis-link/program/spadmin.bin" "$@" \
80 "-env:INIFILENAME=vnd.sun.star.pathname:$sd_prog/redirectrc"