summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-08-19 21:19:07 +0200
committerCarl Hetherington <cth@carlh.net>2025-08-25 08:44:48 +0200
commit8394bbd8bb3e0bc7325bdf1db80e8705fa22db5d (patch)
tree3e451732d3fc54d5f3d3b49511cbf6055490c33a
parent8d3237802de5ea814566c5dc2a52744cd3561e6c (diff)
Make dcpomatic_create work when called from anywhere.
-rwxr-xr-xrun/dcpomatic_create11
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