merged tag ooo/DEV300_m102
[LibreOffice.git] / desktop / scripts / unoinfo.sh
bloba7566155aa0d2ef3ac59580903c813800c1b9306
1 #!/bin/sh
2 #*************************************************************************
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 # Copyright 2000, 2010 Oracle and/or its affiliates.
8 # OpenOffice.org - a multi-platform office productivity suite
10 # This file is part of OpenOffice.org.
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.
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).
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.
27 #*************************************************************************
29 set -e
31 # resolve installation directory
32 sd_res=$0
33 while [ -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"`
37 done
38 cd "`dirname "$sd_res"`"
39 sd_prog=`pwd`
41 case $1 in
42 c++)
43 printf '%s' "$sd_prog/../basis-link/ure-link/lib"
45 java)
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"
53 exit 1
55 esac