Missed update to private test repo version.
[dcpomatic.git] / run / dcpomatic
1 #!/bin/bash
2
3 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
4 build=$DIR/../build
5 export LD_LIBRARY_PATH=$build/src/lib:$build/src/wx:$build/src/asdcplib/src:$LD_LIBRARY_PATH
6 export DYLD_LIBRARY_PATH=$build/src/lib:$build/src/wx:$build/src/asdcplib/src:/Users/ci/osx-environment/x86_64/10.10/lib
7 export DCPOMATIC_GRAPHICS=$DIR/../graphics
8 binary=$build/src/tools/dcpomatic2
9 if [ "$1" == "--debug" ]; then
10     shift
11     gdb --args $binary $*
12 elif [ "$1" == "--valgrind" ]; then
13     shift
14     valgrind --tool="memcheck" --suppressions=suppressions --track-fds=yes --show-leak-kinds=all --leak-check=full $binary $*
15 elif [ "$1" == "--callgrind" ]; then
16     shift
17     valgrind --tool="callgrind" $binary $*
18 elif [ "$1" == "--massif" ]; then
19     shift
20     valgrind --tool="massif" $binary $*
21 elif [ "$1" == "--i18n" ]; then
22     shift
23     LANGUAGE=de_DE.UTF8 LANG=de_DE.UTF8 LC_ALL=de_DE.UTF8 $binary "$*"
24 elif [ "$1" == "--perf" ]; then
25     shift
26     perf record $binary $*
27 elif [ "$1" == "--scaled" ]; then
28     shift
29     ~/src/run_scaled/run_scaled --sleep=5 --scale=0.5 $binary $*
30 elif [ "$1" == "--screenshot" ]; then
31     shift
32     GTK_PATH=/usr/local/lib/gtk-3.0 GTK_MODULES=gtk-vector-screenshot $binary "$*"
33 else
34     $binary $*
35 fi