Merge branch 'master' of ssh://carlh.dyndns.org/home/carl/git/dcpomatic
[dcpomatic.git] / run / dcpomatic_batch
1 #!/bin/bash
2
3 export LD_LIBRARY_PATH=build/src/lib:build/src/wx:build/src/asdcplib/src:$LD_LIBRARY_PATH
4 if [ "$1" == "--debug" ]; then
5     shift
6     gdb --args build/src/tools/dcpomatic_batch $*
7 elif [ "$1" == "--valgrind" ]; then
8     shift
9     valgrind --tool="memcheck" --suppressions=valgrind.supp --leak-check=full --show-reachable=yes build/src/tools/dcpomatic_batch $*
10 elif [ "$1" == "--massif" ]; then
11     shift
12     valgrind --tool="massif" build/src/tools/dcpomatic_batch $*
13 elif [ "$1" == "--callgrind" ]; then
14     shift
15     valgrind --tool="callgrind" build/src/tools/dcpomatic_batch $*
16 elif [ "$1" == "--i18n" ]; then
17     shift
18     LANGUAGE=fr_FR.UTF8 LANG=fr_FR.UTF8 LC_ALL=fr_FR.UTF8 build/src/tools/dcpomatic_batch "$*"
19 else
20     build/src/tools/dcpomatic_batch $*
21 fi