diff options
author | Kacper Kasper <kacperkasper@gmail.com> | 2018-02-18 15:15:56 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2018-02-19 12:58:11 +0100 |
commit | 60f1490af9b29ac2df8e9e9411e9d41b472f9113 (patch) | |
tree | 1a1fdafe5298129c66e96118695e60603565a55b /bin | |
parent | 48fd0d45288bd8501f14c993cf613fe7743fabcd (diff) |
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')
-rwxr-xr-x | bin/run | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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)") |