summaryrefslogtreecommitdiff
path: root/run/tools/dcpdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-12-11 13:55:57 +0000
committerCarl Hetherington <cth@carlh.net>2015-12-11 13:55:57 +0000
commitf5ce5c8fc22884a4f74c0461dd7ced26731ef67e (patch)
tree09d4d98cb5e68b08a9f28428d9115167b423ed6e /run/tools/dcpdiff
parent26bae2c8893c7d3c17d8af4e12f6a7ba24eed393 (diff)
Cope with being called from anywhere.
Diffstat (limited to 'run/tools/dcpdiff')
-rwxr-xr-xrun/tools/dcpdiff3
1 files changed, 3 insertions, 0 deletions
diff --git a/run/tools/dcpdiff b/run/tools/dcpdiff
index 0d8c8d30..0d735c69 100755
--- a/run/tools/dcpdiff
+++ b/run/tools/dcpdiff
@@ -1,5 +1,8 @@
#!/bin/bash
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+cd $DIR/../..
+
export LD_LIBRARY_PATH=build/src:build/asdcplib/src:$LD_LIBRARY_PATH
if [ "$1" == "--debug" ]; then
shift