xref: /aoo41x/main/desktop/scripts/unoinfo.sh (revision ba2f60e9)
1cdf0e10cSrcweir#!/bin/sh
2fce70c9bSAndrew Rist#**************************************************************
3fce70c9bSAndrew Rist#
4fce70c9bSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
5fce70c9bSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
6fce70c9bSAndrew Rist#  distributed with this work for additional information
7fce70c9bSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
8fce70c9bSAndrew Rist#  to you under the Apache License, Version 2.0 (the
9fce70c9bSAndrew Rist#  "License"); you may not use this file except in compliance
10fce70c9bSAndrew Rist#  with the License.  You may obtain a copy of the License at
11fce70c9bSAndrew Rist#
12fce70c9bSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
13fce70c9bSAndrew Rist#
14fce70c9bSAndrew Rist#  Unless required by applicable law or agreed to in writing,
15fce70c9bSAndrew Rist#  software distributed under the License is distributed on an
16fce70c9bSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17fce70c9bSAndrew Rist#  KIND, either express or implied.  See the License for the
18fce70c9bSAndrew Rist#  specific language governing permissions and limitations
19fce70c9bSAndrew Rist#  under the License.
20fce70c9bSAndrew Rist#
21fce70c9bSAndrew 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++)
37a96a8d21SJürgen Schmidt    printf '%s' "$sd_prog"
38cdf0e10cSrcweir    ;;
39cdf0e10cSrcweirjava)
40cdf0e10cSrcweir    printf '0%s\0%s\0%s\0%s\0%s' \
41a96a8d21SJürgen Schmidt        "$sd_prog/classes/ridl.jar" \
42a96a8d21SJürgen Schmidt        "$sd_prog/classes/jurt.jar" \
43*ba2f60e9SHerbert Dürr        "$sd_prog/classes/juh.jar" \
44a96a8d21SJürgen Schmidt        "$sd_prog/classes/unoil.jar" "$sd_prog"
45cdf0e10cSrcweir    ;;
46cdf0e10cSrcweir*)
47cdf0e10cSrcweir    exit 1
48cdf0e10cSrcweir    ;;
49cdf0e10cSrcweiresac
50