blob: a23c45766b58c0659789c7f3c7e4f33d50b171ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $DIR/environment
binary=build/src/tools/dcpomatic2_playlist
if [ "$1" == "--debug" ]; then
shift
gdb --args $binary $*
elif [ "$1" == "--valgrind" ]; then
shift
valgrind --tool="memcheck" --suppressions=suppressions --track-fds=yes $binary $*
elif [ "$1" == "--callgrind" ]; then
shift
valgrind --tool="callgrind" $binary $*
elif [ "$1" == "--massif" ]; then
shift
valgrind --tool="massif" $binary $*
elif [ "$1" == "--i18n" ]; then
shift
LANGUAGE=fr_FR.UTF8 LANG=fr_FR.UTF8 LC_ALL=fr_FR.UTF8 $binary "$*"
elif [ "$1" == "--perf" ]; then
shift
perf record $binary $*
elif [ "$1" == "--screenshot" ]; then
shift
GTK_PATH=/usr/local/lib/gtk-3.0 GTK_MODULES=gtk-vector-screenshot $binary $*
else
$binary $*
fi
|