mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00

NetBSD does not have the daemon running by default and some environments such as Travis may not have it either, this should make the tests pass in such cases without any changes to the host Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
17 lines
393 B
CMake
17 lines
393 B
CMake
#!@KATIE_SHELL@
|
|
|
|
set -e
|
|
|
|
if [ -z "$LD_LIBRARY_PATH" ];then
|
|
export LD_LIBRARY_PATH="@CMAKE_BINARY_DIR@/lib"
|
|
else
|
|
export LD_LIBRARY_PATH="@CMAKE_BINARY_DIR@/lib:$LD_LIBRARY_PATH"
|
|
fi
|
|
export QT_PLUGIN_PATH="@CMAKE_BINARY_DIR@/plugins"
|
|
export QML_IMPORT_PATH="@CMAKE_BINARY_DIR@/imports"
|
|
|
|
bin="$1"
|
|
shift
|
|
|
|
cd "$(dirname "$bin")"
|
|
exec dbus-launch @KATIE_CROSS_EXEC@ "./$(basename "$bin")" $@
|