Add nascent dcpomatic_create.
[dcpomatic.git] / run / dcpomatic
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 $*
7 elif [ "$1" == "--valgrind" ]; then
8     shift
9     valgrind --tool="memcheck" build/src/tools/dcpomatic $*
10 elif [ "$1" == "--callgrind" ]; then
11     shift
12     valgrind --tool="callgrind" build/src/tools/dcpomatic $*
13 elif [ "$1" == "--i18n" ]; then
14     shift
15     LANGUAGE=sv_SE.UTF8 LANG=sv_SE.UTF8 LC_ALL=sv_SE.UTF8 build/src/tools/dcpomatic "$*"
16 elif [ "$1" == "--perf" ]; then
17     shift
18     perf record build/src/tools/dcpomatic $*
19 else
20     build/src/tools/dcpomatic $*
21 fi