From: Carl Hetherington Date: Fri, 11 Dec 2015 13:55:57 +0000 (+0000) Subject: Cope with being called from anywhere. X-Git-Tag: v1.3.0~41 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=f5ce5c8fc22884a4f74c0461dd7ced26731ef67e;p=libdcp.git Cope with being called from anywhere. --- 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