xref: /aoo41x/main/desktop/scripts/unoinfo.sh (revision cdf0e10c)
1#!/bin/sh
2#*************************************************************************
3#
4# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5#
6# Copyright 2000, 2010 Oracle and/or its affiliates.
7#
8# OpenOffice.org - a multi-platform office productivity suite
9#
10# This file is part of OpenOffice.org.
11#
12# OpenOffice.org is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Lesser General Public License version 3
14# only, as published by the Free Software Foundation.
15#
16# OpenOffice.org is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19# GNU Lesser General Public License version 3 for more details
20# (a copy is included in the LICENSE file that accompanied this code).
21#
22# You should have received a copy of the GNU Lesser General Public License
23# version 3 along with OpenOffice.org.  If not, see
24# <http://www.openoffice.org/license.html>
25# for a copy of the LGPLv3 License.
26#
27#*************************************************************************
28
29set -e
30
31# resolve installation directory
32sd_res=$0
33while [ -h "$sd_res" ] ; do
34    cd "`dirname "$sd_res"`"
35    sd_basename=`basename "$sd_res"`
36    sd_res=`ls -l "$sd_basename" | sed "s/.*$sd_basename -> //g"`
37done
38cd "`dirname "$sd_res"`"
39sd_prog=`pwd`
40
41case $1 in
42c++)
43    printf '%s' "$sd_prog/../basis-link/ure-link/lib"
44    ;;
45java)
46    printf '0%s\0%s\0%s\0%s\0%s' \
47        "$sd_prog/../basis-link/ure-link/share/java/ridl.jar" \
48        "$sd_prog/../basis-link/ure-link/share/java/jurt.jar" \
49        "$sd_prog/../basis-link/ure-link/share/java/juh.jar" \
50        "$sd_prog/../basis-link/program/classes/unoil.jar" "$sd_prog"
51    ;;
52*)
53    exit 1
54    ;;
55esac
56