blob: e3c5fd89545e92948a1b6de929ef7e4d0360d1be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $DIR/environment
binary=$build/src/tools/dcpomatic2_create
if [ "$1" == "--debug" ]; then
shift
gdb --args $binary $*
elif [ "$1" == "--valgrind" ]; then
shift
valgrind --tool="memcheck" $binary $*
elif [ "$1" == "--callgrind" ]; then
shift
valgrind --tool="callgrind" $binary $*
elif [ "$1" == "--perf" ]; then
shift
perf record $binary $*
else
$binary "$@"
fi
|