Add nascent dcpomatic_create.
[dcpomatic.git] / run / dcpomatic_create
diff --git a/run/dcpomatic_create b/run/dcpomatic_create
new file mode 100755 (executable)
index 0000000..bf3c3c4
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+export LD_LIBRARY_PATH=build/src/lib:build/src/wx:build/src/asdcplib/src:$LD_LIBRARY_PATH
+if [ "$1" == "--debug" ]; then
+    shift
+    gdb --args build/src/tools/dcpomatic_create $*
+elif [ "$1" == "--valgrind" ]; then
+    shift
+    valgrind --tool="memcheck" build/src/tools/dcpomatic_create $*
+elif [ "$1" == "--callgrind" ]; then
+    shift
+    valgrind --tool="callgrind" build/src/tools/dcpomatic_create $*
+elif [ "$1" == "--perf" ]; then
+    shift
+    perf record build/src/tools/dcpomatic_create $*
+else
+    build/src/tools/dcpomatic_create $*
+fi