From 8394bbd8bb3e0bc7325bdf1db80e8705fa22db5d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 19 Aug 2025 21:19:07 +0200 Subject: Make dcpomatic_create work when called from anywhere. --- run/dcpomatic_create | 11 ++++++----- 1 file 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 -- cgit v1.2.3