Cope with being called from anywhere.
authorCarl Hetherington <cth@carlh.net>
Fri, 11 Dec 2015 13:55:57 +0000 (13:55 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 11 Dec 2015 13:55:57 +0000 (13:55 +0000)
run/tools/dcpdiff

index 0d8c8d30531e807085a1d0ff005ef41827334dcc..0d735c690423615820a626ade59808455782d082 100755 (executable)
@@ -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