diff options
Diffstat (limited to 'run/dcpomatic_map')
| -rwxr-xr-x | run/dcpomatic_map | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/run/dcpomatic_map b/run/dcpomatic_map new file mode 100755 index 000000000..f81be3067 --- /dev/null +++ b/run/dcpomatic_map @@ -0,0 +1,14 @@ +#!/bin/bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +source $DIR/environment + +if [ "$1" == "--debug" ]; then + shift + gdb --args build/src/tools/dcpomatic2_map "$@" +elif [ "$1" == "--valgrind" ]; then + shift + valgrind --tool="memcheck" --leak-check=full --show-reachable=yes build/src/tools/dcpomatic2_map "$@" +else + build/src/tools/dcpomatic2_map "$@" +fi |
