summaryrefslogtreecommitdiff
path: root/run/dcpomatic_map
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-02-18 00:15:30 +0100
committerCarl Hetherington <cth@carlh.net>2023-05-13 08:54:58 +0200
commit3a1ddb9e182be28a22c5bbc85c06ee6629b72fe6 (patch)
tree5294bf4b097d12e0fb69affb307def8e897d76ee /run/dcpomatic_map
parentbab59a964fe7fe6dabf1fb3df95ed5d7ec8df88a (diff)
Add dcpomatic2_map tool (#2445).
Diffstat (limited to 'run/dcpomatic_map')
-rwxr-xr-xrun/dcpomatic_map14
1 files changed, 14 insertions, 0 deletions
diff --git a/run/dcpomatic_map b/run/dcpomatic_map
new file mode 100755
index 000000000..f81be3067
--- /dev/null
+++ b/run/dcpomatic_map
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
+source $DIR/environment
+
+if [ "$1" == "--debug" ]; then
+ shift
+ gdb --args build/src/tools/dcpomatic2_map "$@"
+elif [ "$1" == "--valgrind" ]; then
+ shift
+ valgrind --tool="memcheck" --leak-check=full --show-reachable=yes build/src/tools/dcpomatic2_map "$@"
+else
+ build/src/tools/dcpomatic2_map "$@"
+fi