Tidy how we're finding the tags and xsd directories.
[libdcp.git] / run / tools / dcpverify
1 #!/bin/bash
2
3 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4 top=$DIR/../..
5 export LIBDCP_RESOURCES=$top
6
7 export LD_LIBRARY_PATH=$top/build/src:build/asdcplib/src:$LD_LIBRARY_PATH
8 if [ "$1" == "--debug" ]; then
9     shift
10     gdb --args $top/build/tools/dcpverify "$@"
11 elif [ "$1" == "--valgrind" ]; then
12     shift
13     valgrind --tool="memcheck" --leak-check=full --show-reachable=yes $top/build/tools/dcpverify "$@"
14 else
15     $top/build/tools/dcpverify "$@"
16 fi