xref: /aoo41x/main/desktop/scripts/unoinfo.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
23cdf0e10cSrcweirset -e
24cdf0e10cSrcweir
25cdf0e10cSrcweir# resolve installation directory
26cdf0e10cSrcweirsd_res=$0
27cdf0e10cSrcweirwhile [ -h "$sd_res" ] ; do
28cdf0e10cSrcweir    cd "`dirname "$sd_res"`"
29cdf0e10cSrcweir    sd_basename=`basename "$sd_res"`
30cdf0e10cSrcweir    sd_res=`ls -l "$sd_basename" | sed "s/.*$sd_basename -> //g"`
31cdf0e10cSrcweirdone
32cdf0e10cSrcweircd "`dirname "$sd_res"`"
33cdf0e10cSrcweirsd_prog=`pwd`
34cdf0e10cSrcweir
35cdf0e10cSrcweircase $1 in
36cdf0e10cSrcweirc++)
37cdf0e10cSrcweir    printf '%s' "$sd_prog/../basis-link/ure-link/lib"
38cdf0e10cSrcweir    ;;
39cdf0e10cSrcweirjava)
40cdf0e10cSrcweir    printf '0%s\0%s\0%s\0%s\0%s' \
41cdf0e10cSrcweir        "$sd_prog/../basis-link/ure-link/share/java/ridl.jar" \
42cdf0e10cSrcweir        "$sd_prog/../basis-link/ure-link/share/java/jurt.jar" \
43cdf0e10cSrcweir        "$sd_prog/../basis-link/ure-link/share/java/juh.jar" \
44cdf0e10cSrcweir        "$sd_prog/../basis-link/program/classes/unoil.jar" "$sd_prog"
45cdf0e10cSrcweir    ;;
46cdf0e10cSrcweir*)
47cdf0e10cSrcweir    exit 1
48cdf0e10cSrcweir    ;;
49cdf0e10cSrcweiresac
50