#!/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