summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-03-25 22:31:48 +0100
committerCarl Hetherington <cth@carlh.net>2024-03-25 22:32:00 +0100
commitdbc52b7e48d7f59f74cc36b61d8ec774fcae8e88 (patch)
tree6091190edd33d08498acc5ff72884ac74be01b9b
parent777f8b0bfee98c52d726419c7c57557c0bab4a87 (diff)
Hack to local build script to use environment if ~/build if present.
-rw-r--r--run/environment5
1 files changed, 4 insertions, 1 deletions
diff --git a/run/environment b/run/environment
index aabb463f3..aa4f77187 100644
--- a/run/environment
+++ b/run/environment
@@ -1,6 +1,9 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
build=$DIR/../build
-export LD_LIBRARY_PATH=$build/src/lib:$build/src/wx:$build/src/asdcplib/src:/usr/local/lib64:/usr/local/lib:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH=$build/src/lib:$build/src/wx:/usr/local/lib64:/usr/local/lib:$LD_LIBRARY_PATH
+if [[ $(readlink -f $DIR/..) =~ (.*build/[^/]*) ]]; then
+ export LD_LIBRARY_PATH=${BASH_REMATCH[1]}/lib:$LD_LIBRARY_PATH
+fi
export DYLD_LIBRARY_PATH=$build/src/lib:$build/src/wx:$build/src/asdcplib/src:/Users/ci/osx-environment/x86_64/10.10/lib:/Users/ci/workspace/lib
export DCPOMATIC_GRAPHICS=$DIR/../graphics