Add dcpomatic_batch script.
authorCarl Hetherington <cth@carlh.net>
Thu, 14 Nov 2013 15:23:36 +0000 (15:23 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 14 Nov 2013 15:23:36 +0000 (15:23 +0000)
run/dcpomatic_batch [new file with mode: 0755]

diff --git a/run/dcpomatic_batch b/run/dcpomatic_batch
new file mode 100755 (executable)
index 0000000..ac2d0e3
--- /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_batch $*
+elif [ "$1" == "--valgrind" ]; then
+    shift
+    valgrind --tool="memcheck" build/src/tools/dcpomatic_batch $*
+elif [ "$1" == "--callgrind" ]; then
+    shift
+    valgrind --tool="callgrind" build/src/tools/dcpomatic_batch $*
+elif [ "$1" == "--i18n" ]; then
+    shift
+    LANGUAGE=fr_FR.UTF8 LANG=fr_FR.UTF8 LC_ALL=fr_FR.UTF8 build/src/tools/dcpomatic_batch "$*"
+else
+    build/src/tools/dcpomatic_batch $*
+fi