New dcpkdm tool.
[libdcp.git] / run / tools / dcpkdm
diff --git a/run/tools/dcpkdm b/run/tools/dcpkdm
new file mode 100755 (executable)
index 0000000..0a08605
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+export LD_LIBRARY_PATH=build/src:build/asdcplib/src:/home/c.hetherington/lib:$LD_LIBRARY_PATH
+if [ "$1" == "--debug" ]; then
+    shift
+    gdb --args build/tools/dcpkdm "$@"
+elif [ "$1" == "--valgrind" ]; then
+    shift
+    valgrind --tool="memcheck" --leak-check=full --show-reachable=yes build/tools/dcpkdm "$@"
+else
+    build/tools/dcpkdm "$@"
+fi