merge the formfield patch from ooo-build
[ooovba.git] / ure / source / startup.sh
blob6c7ae799e2b16f29eeb18dd896ac38c88c9fa636
1 #!/bin/sh
2 #*************************************************************************
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 #
6 # Copyright 2008 by Sun Microsystems, Inc.
8 # OpenOffice.org - a multi-platform office productivity suite
10 # $RCSfile: startup.sh,v $
12 # $Revision: 1.4.10.1 $
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 #*************************************************************************
33 # Pass -env arguments on to javaldx; needs to be fixed:
34 my_envargs=
35 for my_arg in "$@" ; do
36 case ${my_arg} in
37 -env:*) my_envargs="${my_envargs} ${my_arg}" ;;
38 esac
39 done
41 # Extend the LD_LIBRARY_PATH for Java:
42 epath=`dirname "$0"`
43 if [ -x "${epath}/javaldx" ] ; then
44 jpath=`"${epath}/javaldx" $my_envargs`
45 if [ -n "${jpath}" ]; then
46 LD_LIBRARY_PATH=${jpath}${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}
47 export LD_LIBRARY_PATH
51 exec "$0.bin" "$@"