summaryrefslogtreecommitdiffstats
path: root/bin/run
diff options
context:
space:
mode:
authorKacper Kasper <kacperkasper@gmail.com>2018-02-18 15:15:56 +0100
committerMichael Meeks <michael.meeks@collabora.com>2018-02-19 12:58:11 +0100
commit60f1490af9b29ac2df8e9e9411e9d41b472f9113 (patch)
tree1a1fdafe5298129c66e96118695e60603565a55b /bin/run
parenttdf#115569 don't sign or validate text in tables (diff)
downloadcore-60f1490af9b29ac2df8e9e9411e9d41b472f9113.tar.gz
core-60f1490af9b29ac2df8e9e9411e9d41b472f9113.zip
Buildsystem changes to recognize Haiku.
Change-Id: I219d556f8e124cfe426cc1ac3c54da34eb7ef790 Reviewed-on: https://gerrit.libreoffice.org/49925 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'bin/run')
-rwxr-xr-xbin/run22
1 files changed, 22 insertions, 0 deletions
diff --git a/bin/run b/bin/run
index 7055ffe177b3..51de1f153512 100755
--- a/bin/run
+++ b/bin/run
@@ -53,6 +53,28 @@ elif [ $(uname) = Darwin ]; then
exec ${LO_TRACE} "${exedir}/$@"
+elif [ $(uname) = Haiku ]; then
+
+ 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 LIBRARY_PATH=${LIBRARY_PATH:+$LIBRARY_PATH:}"${dir}"/instdir/program
+
+# echo "setting URE_BOOTSTRAP to: ${URE_BOOTSTRAP}"
+# echo "setting search path to: ${LIBRARY_PATH}"
+# echo "execing: ${exedir}/$1"
+
+ exec ${LO_TRACE} "${exedir}/$@"
+
else
dir=$(readlink -f "$(pwd)")