diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-08-19 21:19:07 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-08-25 08:44:48 +0200 |
| commit | 8394bbd8bb3e0bc7325bdf1db80e8705fa22db5d (patch) | |
| tree | 3e451732d3fc54d5f3d3b49511cbf6055490c33a /run/dcpomatic_create | |
| parent | 8d3237802de5ea814566c5dc2a52744cd3561e6c (diff) | |
Make dcpomatic_create work when called from anywhere.
Diffstat (limited to 'run/dcpomatic_create')
| -rwxr-xr-x | run/dcpomatic_create | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/run/dcpomatic_create b/run/dcpomatic_create index 84cb7b096..e3c5fd895 100755 --- a/run/dcpomatic_create +++ b/run/dcpomatic_create @@ -2,19 +2,20 @@ 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 build/src/tools/dcpomatic2_create $* + gdb --args $binary $* elif [ "$1" == "--valgrind" ]; then shift - valgrind --tool="memcheck" build/src/tools/dcpomatic2_create $* + valgrind --tool="memcheck" $binary $* elif [ "$1" == "--callgrind" ]; then shift - valgrind --tool="callgrind" build/src/tools/dcpomatic2_create $* + valgrind --tool="callgrind" $binary $* elif [ "$1" == "--perf" ]; then shift - perf record build/src/tools/dcpomatic2_create $* + perf record $binary $* else - build/src/tools/dcpomatic2_create "$@" + $binary "$@" fi |
