2008-06-09 11:57:21 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2012-11-15 17:28:16 +00:00
|
|
|
# This file is part of the LibreOffice project.
|
2008-06-09 11:57:21 +00:00
|
|
|
#
|
2012-11-15 17:28:16 +00:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2008-06-09 11:57:21 +00:00
|
|
|
#
|
2012-11-15 17:28:16 +00:00
|
|
|
# This file incorporates work covered by the following license notice:
|
2008-06-09 11:57:21 +00:00
|
|
|
#
|
2012-11-15 17:28:16 +00:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed
|
|
|
|
# with this work for additional information regarding copyright
|
|
|
|
# ownership. The ASF licenses this file to you under the Apache
|
|
|
|
# License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
# except in compliance with the License. You may obtain a copy of
|
|
|
|
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
2008-06-09 11:57:21 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# resolve installation directory
|
2015-05-11 22:58:25 +02:00
|
|
|
sd_res="$0"
|
2010-06-23 10:45:22 +02:00
|
|
|
while [ -h "$sd_res" ] ; do
|
2017-02-03 22:05:44 +03:00
|
|
|
sd_dirname=$(dirname "$sd_res")
|
|
|
|
cd "$sd_dirname"
|
|
|
|
sd_basename=$(basename "$sd_res")
|
|
|
|
sd_res=$(ls -l "$sd_basename" | sed "s/.*$sd_basename -> //g")
|
2010-06-23 10:45:22 +02:00
|
|
|
done
|
2017-02-03 22:05:44 +03:00
|
|
|
sd_dirname=$(dirname "$sd_res")
|
|
|
|
cd "$sd_dirname"
|
|
|
|
sd_prog=$(pwd)
|
2008-06-09 11:57:21 +00:00
|
|
|
|
2015-05-11 22:58:25 +02:00
|
|
|
case "$1" in
|
2008-06-09 11:57:21 +00:00
|
|
|
c++)
|
2014-11-28 11:48:22 +01:00
|
|
|
printf '%s' "$sd_prog"
|
2008-06-09 11:57:21 +00:00
|
|
|
;;
|
|
|
|
java)
|
|
|
|
printf '0%s\0%s\0%s\0%s\0%s' \
|
2014-11-28 15:24:10 +01:00
|
|
|
"$sd_prog/classes/ridl.jar" "$sd_prog/classes/jurt.jar" \
|
|
|
|
"$sd_prog/classes/juh.jar" "$sd_prog/classes/unoil.jar" "$sd_prog"
|
2008-06-09 11:57:21 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|