Kaydet (Commit) 218840ba authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Adapt bin/run for OS X

...which does not have realpath(1), so just require CWD to match BUILDDIR there

Change-Id: I245241299d650c541f86cf440d3b57308c86d3fb
üst 2aa5c169
......@@ -2,6 +2,27 @@
# simple wrapper script to run non-installed executables from workdir
if [ $(uname) = Darwin ]; then
dir=$(pwd)
if [ ! -d "${dir}/instdir/LibreOffice.app" ]; then
echo "error: cannot find \"instdir/LibreOffice.app\" dir in \"$(pwd)\""
exit 1
fi
exedir="${dir}"/workdir/LinkTarget/Executable
export URE_BOOTSTRAP=file://"${dir}"/instdir/LibreOffice.app/Contents/Resources/fundamentalrc
export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH:+$DYLD_LIBRARY_PATH:}"${dir}"/instdir/LibreOffice.app/Contents/Frameworks
echo "setting URE_BOOTSTRAP to: ${URE_BOOTSTRAP}"
echo "setting search path to: ${DYLD_LIBRARY_PATH}"
echo "execing: ${exedir}/$1"
exec "${exedir}"/$@
else
dir=$(realpath "$(pwd)")
while test ! -d "${dir}/instdir/program" ; do
......@@ -22,3 +43,5 @@ echo "execing: ${exedir}/$1"
cd "${dir}"/instdir/program
exec "${exedir}"/$@
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment