summaryrefslogtreecommitdiff
path: root/run/dcpomatic_batch
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-11-14 15:23:36 +0000
committerCarl Hetherington <cth@carlh.net>2013-11-14 15:23:36 +0000
commit85bda932d4e889043ce0e15bac8da95c223667b8 (patch)
tree1f0b813fc59d80d53e4bcff3f7fe3edb6e22b78c /run/dcpomatic_batch
parent09fb41a919fc2eada3323bb2dfbc332a5bd42036 (diff)
Add dcpomatic_batch script.
Diffstat (limited to 'run/dcpomatic_batch')
-rwxr-xr-xrun/dcpomatic_batch18
1 files changed, 18 insertions, 0 deletions
diff --git a/run/dcpomatic_batch b/run/dcpomatic_batch
new file mode 100755
index 000000000..ac2d0e39a
--- /dev/null
+++ b/run/dcpomatic_batch
@@ -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