X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=run%2Fdcpomatic;h=8da7d7fab2fcc38cbffb7cc658764c569ed2bb34;hb=25eb7aa723af004162fc7f95995df250c4e4571b;hp=0bd54f66b0cade2025582cec56b0acf94d25eab8;hpb=9518d2a417833b530d2ef00c33179b27bcfa41da;p=dcpomatic.git diff --git a/run/dcpomatic b/run/dcpomatic index 0bd54f66b..8da7d7fab 100755 --- a/run/dcpomatic +++ b/run/dcpomatic @@ -1,25 +1,33 @@ #!/bin/bash -export LD_LIBRARY_PATH=build/src/lib:build/src/wx:build/src/asdcplib/src:$LD_LIBRARY_PATH -export DYLD_LIBRARY_PATH=build/src/lib:build/src/wx:build/src/asdcplib/src:/carl/Environment/64/lib +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +source $DIR/environment +binary=$build/src/tools/dcpomatic2 + if [ "$1" == "--debug" ]; then shift - gdb --args build/src/tools/dcpomatic2 $* + gdb --args $binary $* elif [ "$1" == "--valgrind" ]; then shift - valgrind --tool="memcheck" --suppressions=suppressions --track-fds=yes build/src/tools/dcpomatic2 $* + valgrind --tool="memcheck" --suppressions=suppressions --track-fds=yes --show-leak-kinds=all --leak-check=full $binary $* elif [ "$1" == "--callgrind" ]; then shift - valgrind --tool="callgrind" build/src/tools/dcpomatic2 $* + valgrind --tool="callgrind" $binary $* elif [ "$1" == "--massif" ]; then shift - valgrind --tool="massif" build/src/tools/dcpomatic2 $* + valgrind --tool="massif" $binary $* elif [ "$1" == "--i18n" ]; then shift - LANGUAGE=fr_FR.UTF8 LANG=fr_FR.UTF8 LC_ALL=fr_FR.UTF8 build/src/tools/dcpomatic2 "$*" + LANGUAGE=de_DE.UTF8 LANG=de_DE.UTF8 LC_ALL=de_DE.UTF8 $binary "$*" elif [ "$1" == "--perf" ]; then shift - perf record build/src/tools/dcpomatic2 $* + perf record $binary $* +elif [ "$1" == "--scaled" ]; then + shift + ~/src/run_scaled/run_scaled --sleep=5 --scale=0.5 $binary $* +elif [ "$1" == "--screenshot" ]; then + shift + GTK_PATH=/usr/local/lib/gtk-3.0 GTK_MODULES=gtk-vector-screenshot $binary "$*" else - build/src/tools/dcpomatic2 $* + $binary $* fi