2003-04-06 16:33:08 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2012-07-02 14:56:57 +01:00
|
|
|
# This file is part of the LibreOffice project.
|
2003-04-06 16:33:08 +00:00
|
|
|
#
|
2012-07-02 14:56:57 +01: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/.
|
2003-04-06 16:33:08 +00:00
|
|
|
#
|
2012-07-02 14:56:57 +01:00
|
|
|
# This file incorporates work covered by the following license notice:
|
2003-04-06 16:33:08 +00:00
|
|
|
#
|
2012-07-02 14:56:57 +01: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 .
|
2003-04-06 16:33:08 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# resolve installation directory
|
|
|
|
sd_cwd="`pwd`"
|
|
|
|
if [ -h "$0" ] ; then
|
|
|
|
sd_basename=`basename "$0"`
|
2011-06-06 20:09:06 +02:00
|
|
|
sd_script=`ls -l "$0" | sed "s/.*${sd_basename} -> //g"`
|
2003-04-06 16:33:08 +00:00
|
|
|
cd "`dirname "$0"`"
|
|
|
|
cd "`dirname "$sd_script"`"
|
|
|
|
else
|
|
|
|
cd "`dirname "$0"`"
|
|
|
|
fi
|
2008-06-09 12:05:55 +00:00
|
|
|
sd_prog=`pwd`
|
2003-04-06 16:33:08 +00:00
|
|
|
cd "$sd_cwd"
|
|
|
|
|
2008-06-09 12:05:55 +00:00
|
|
|
# Set PATH so that crash_report is found:
|
|
|
|
PATH=$sd_prog${PATH+:$PATH}
|
|
|
|
export PATH
|
2003-04-06 16:33:08 +00:00
|
|
|
|
2009-02-12 09:18:09 +00:00
|
|
|
# Set UNO_PATH so that "officehelper.bootstrap()" can find soffice executable:
|
|
|
|
: ${UNO_PATH=$sd_prog}
|
|
|
|
export UNO_PATH
|
|
|
|
|