summaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-10-03 18:04:31 +0100
committerCarl Hetherington <cth@carlh.net>2013-10-03 18:04:31 +0100
commit568e553f506809e753c78a0e0cbad5906bc002b1 (patch)
tree4cd234309105ce1f9fc571148d984100738826e7 /run
parentc869563a1414c869ac15f8d590217a45c7739996 (diff)
KDM / libdcp API changes.
Diffstat (limited to 'run')
-rwxr-xr-xrun/dcpomatic_kdm12
1 files changed, 12 insertions, 0 deletions
diff --git a/run/dcpomatic_kdm b/run/dcpomatic_kdm
new file mode 100755
index 000000000..faad61018
--- /dev/null
+++ b/run/dcpomatic_kdm
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+export LD_LIBRARY_PATH=build/src/lib:$LD_LIBRARY_PATH:build/src
+if [ "$1" == "--debug" ]; then
+ shift
+ gdb --args build/src/tools/dcpomatic_kdm "$@"
+elif [ "$1" == "--valgrind" ]; then
+ shift
+ valgrind --tool="memcheck" --leak-check=full --show-reachable=yes build/src/tools/dcpomatic_kdm "$@"
+else
+ build/src/tools/dcpomatic_kdm "$@"
+fi