xref: /aoo41x/main/ure/source/startup.sh (revision fce70c9b)
1cdf0e10cSrcweir#!/bin/sh
2*fce70c9bSAndrew Rist#**************************************************************
3*fce70c9bSAndrew Rist#
4*fce70c9bSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
5*fce70c9bSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
6*fce70c9bSAndrew Rist#  distributed with this work for additional information
7*fce70c9bSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
8*fce70c9bSAndrew Rist#  to you under the Apache License, Version 2.0 (the
9*fce70c9bSAndrew Rist#  "License"); you may not use this file except in compliance
10*fce70c9bSAndrew Rist#  with the License.  You may obtain a copy of the License at
11*fce70c9bSAndrew Rist#
12*fce70c9bSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
13*fce70c9bSAndrew Rist#
14*fce70c9bSAndrew Rist#  Unless required by applicable law or agreed to in writing,
15*fce70c9bSAndrew Rist#  software distributed under the License is distributed on an
16*fce70c9bSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17*fce70c9bSAndrew Rist#  KIND, either express or implied.  See the License for the
18*fce70c9bSAndrew Rist#  specific language governing permissions and limitations
19*fce70c9bSAndrew Rist#  under the License.
20*fce70c9bSAndrew Rist#
21*fce70c9bSAndrew Rist#**************************************************************
22cdf0e10cSrcweir
23cdf0e10cSrcweir# Pass -env arguments on to javaldx; needs to be fixed:
24cdf0e10cSrcweirmy_envargs=
25cdf0e10cSrcweirfor my_arg in "$@" ; do
26cdf0e10cSrcweir  case ${my_arg} in
27cdf0e10cSrcweir    -env:*) my_envargs="${my_envargs} ${my_arg}" ;;
28cdf0e10cSrcweir  esac
29cdf0e10cSrcweirdone
30cdf0e10cSrcweir
31cdf0e10cSrcweir# Extend the LD_LIBRARY_PATH for Java:
32cdf0e10cSrcweirepath=`dirname "$0"`
33cdf0e10cSrcweirif [ -x "${epath}/javaldx" ] ; then
34cdf0e10cSrcweir    jpath=`"${epath}/javaldx" $my_envargs`
35cdf0e10cSrcweir    if [ -n "${jpath}" ]; then
36cdf0e10cSrcweir        LD_LIBRARY_PATH=${jpath}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
37cdf0e10cSrcweir        export LD_LIBRARY_PATH
38cdf0e10cSrcweir    fi
39cdf0e10cSrcweirfi
40cdf0e10cSrcweir
41cdf0e10cSrcweirexec "$0.bin" "$@"
42