#!/bin/sh # # This file is part of the LibreOffice project. # # 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/. # # simple wrapper script to run non-installed executables from workdir if uname | grep -i CYGWIN >/dev/null; then dir=$(realpath "$(pwd)") while test ! -d "${dir}/instdir/program" ; do if test "${dir}" = "/"; then echo "error: cannot find \"program\" dir from \"$(pwd)\"" exit 1 fi dir=$(realpath "${dir}/..") done exedir=$(cygpath -m "${dir}"/workdir/LinkTarget/Executable) export URE_BOOTSTRAP=file:///$(cygpath -m "${dir}")/instdir/program/fundamental.ini export PATH=${PATH:+$PATH:}"${dir}"/instdir/program echo "setting URE_BOOTSTRAP to: ${URE_BOOTSTRAP}" echo "setting search path to: ${PATH}" echo "execing: ${exedir}/$1" exec ${LO_TRACE} "${exedir}/$@" elif [ $(uname) = Darwin ]; then dir=$(pwd) # Get PRODUCTNAME from config_host.mk, LibreOffice or LibreOfficeDev eval `grep 'export PRODUCTNAME=' config_host.mk` if [ ! -d "${dir}/instdir/$PRODUCTNAME.app" ]; then echo "error: cannot find \"instdir/$PRODUCTNAME.app\" dir in \"$(pwd)\"" exit 1 fi exedir="${dir}"/workdir/LinkTarget/Executable export URE_BOOTSTRAP=file://"${dir}"/instdir/$PRODUCTNAME.app/Contents/Resources/fundamentalrc export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH:+$DYLD_LIBRARY_PATH:}"${dir}"/instdir/$PRODUCTNAME.app/Contents/Frameworks echo "setting URE_BOOTSTRAP to: ${URE_BOOTSTRAP}" echo "setting search path to: ${DYLD_LIBRARY_PATH}" echo "execing: ${exedir}/$1" exec ${LO_TRACE} "${exedir}/$@" else dir=$(readlink -f "$(pwd)") while test ! -d "${dir}/instdir/program" ; do if test "${dir}" = "/"; then echo "error: cannot find \"program\" dir from \"$(pwd)\"" exit 1 fi dir=$(readlink -f "${dir}/..") done exedir="${dir}"/workdir/LinkTarget/Executable export URE_BOOTSTRAP=file://"${dir}"/instdir/program/fundamentalrc export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"${dir}"/instdir/program echo "setting URE_BOOTSTRAP to: ${URE_BOOTSTRAP}" echo "setting search path to: ${LD_LIBRARY_PATH}" echo "execing: ${exedir}/$1" exec ${LO_TRACE} "${exedir}/$@" fi # vi:set shiftwidth=4 expandtab: option> LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/dtrans/test
AgeCommit message (Expand)Author
2019-08-20Fix typosAndrea Gelmini
2019-07-24Fix typoAndrea Gelmini
2018-09-07Cppcheck: release the handle that CreateThread returnsMike Kaganski
2017-09-22Windows: avoid dependence on UNICODE define; prefer W functionsMike Kaganski
2017-08-29remove some unused macro definitionsNoel Grandin
2016-03-04-Werror,-Wnon-virtual-dtorStephan Bergmann
2016-02-17Typo: namesapce(s)->namespace(s)Julien Nabet
2016-01-07cppcheck: noExplicitConstructorCaolán McNamara
2015-10-31use uno::Reference::set method instead of assignmentNoel Grandin
2015-10-30UNO: no need to use OUString constructor when calling createInstanceNoel Grandin
2015-10-25tdf#39440: fix several warnings reported by cppcheckSerge Krot
2015-08-23tdf#39440 cppcheck: redundantAssignmentMichael Weghorn
2015-07-28tdf#88206 replace cppu::WeakImplHelper* etc.Takeshi Abe
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann