#!/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 setdefaults() { 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="${dir}"/workdir/LinkTarget/Executable export URE_BOOTSTRAP=file://"${dir}"/instdir/program/fundamentalrc } if uname | grep -i CYGWIN >/dev/null; then setdefaults 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 SEARCH_PATH="${PATH}" 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 SEARCH_PATH="${DYLD_LIBRARY_PATH}" elif [ $(uname) = Haiku ]; then setdefaults export LIBRARY_PATH=${LIBRARY_PATH:+$LIBRARY_PATH:}"${dir}"/instdir/program SEARCH_PATH="${LIBRARY_PATH}" else setdefaults export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"${dir}"/instdir/program SEARCH_PATH="${LD_LIBRARY_PATH}" fi # echo "setting URE_BOOTSTRAP to: ${URE_BOOTSTRAP}" # echo "setting search path to: ${SEARCH_PATH}" # echo "execing: ${exedir}/$1" exec ${LO_TRACE} "${exedir}/$@" # vi:set shiftwidth=4 expandtab: ollabora/cd-5.3-3.1'>distro/collabora/cd-5.3-3.1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/distro-configs/LibreOfficeWin64.conf
AgeCommit message (Expand)Author
2021-10-14--enable-lto for distro-configs/* that already use --enable-mergelibsLuboš Luňák
2021-05-18make --disable-odk the defaultNoel Grandin
2020-09-11WIN drop --enable-64bit to select Windows targetJan-Marek Glogowski
2018-07-04enable html-help for Linux, Windows and Mac distro-configsChristian Lohmaier
2017-01-13Remove --disable-gtk from Windows distro configsSamuel Mehrbrodt
2016-06-07enable breakpad in distro configsMarkus Mohrhard
2015-07-17Linux and Win builds use mergelibs starting with 5.0Christian Lohmaier
2015-02-19distro-config: Synchronize 32 bit and x64 bit platformsDavid Ostrovsky
2013-04-30Revert "Don't enable postgresql-sdbc by default"Tor Lillqvist
2013-04-30Fix 64-bitness optionTor Lillqvist
2013-04-30Don't enable postgresql-sdbc by defaultTor Lillqvist
2013-04-17--without-agfa-monotype-fonts is goneStephan Bergmann