projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d26f116
)
Use a variable in the playlist script.
author
Carl Hetherington
<cth@carlh.net>
Mon, 1 Jan 2024 23:16:46 +0000
(
00:16
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 1 Jan 2024 23:16:46 +0000
(
00:16
+0100)
run/dcpomatic_playlist
patch
|
blob
|
history
diff --git
a/run/dcpomatic_playlist
b/run/dcpomatic_playlist
index e240aab9cc96110b5edbcf5a6fd4f3725fe39aa5..6550e5dee42bda45369bcbb9d6e55ec169fa515e 100755
(executable)
--- a/
run/dcpomatic_playlist
+++ b/
run/dcpomatic_playlist
@@
-2,25
+2,26
@@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $DIR/environment
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $DIR/environment
+binary=build/src/tools/dcpomatic2_playlist
if [ "$1" == "--debug" ]; then
shift
if [ "$1" == "--debug" ]; then
shift
- gdb --args
build/src/tools/dcpomatic2_playlist
$*
+ gdb --args
$binary
$*
elif [ "$1" == "--valgrind" ]; then
shift
elif [ "$1" == "--valgrind" ]; then
shift
- valgrind --tool="memcheck" --suppressions=suppressions --track-fds=yes
build/src/tools/dcpomatic2_playlist
$*
+ valgrind --tool="memcheck" --suppressions=suppressions --track-fds=yes
$binary
$*
elif [ "$1" == "--callgrind" ]; then
shift
elif [ "$1" == "--callgrind" ]; then
shift
- valgrind --tool="callgrind"
build/src/tools/dcpomatic2_playlist
$*
+ valgrind --tool="callgrind"
$binary
$*
elif [ "$1" == "--massif" ]; then
shift
elif [ "$1" == "--massif" ]; then
shift
- valgrind --tool="massif"
build/src/tools/dcpomatic2_playlist
$*
+ valgrind --tool="massif"
$binary
$*
elif [ "$1" == "--i18n" ]; then
shift
elif [ "$1" == "--i18n" ]; then
shift
- LANGUAGE=fr_FR.UTF8 LANG=fr_FR.UTF8 LC_ALL=fr_FR.UTF8
build/src/tools/dcpomatic2_playlist
"$*"
+ LANGUAGE=fr_FR.UTF8 LANG=fr_FR.UTF8 LC_ALL=fr_FR.UTF8
$binary
"$*"
elif [ "$1" == "--perf" ]; then
shift
elif [ "$1" == "--perf" ]; then
shift
- perf record
build/src/tools/dcpomatic2_playlist
$*
+ perf record
$binary
$*
else
else
-
build/src/tools/dcpomatic2_playlist
$*
+
$binary
$*
fi
fi