X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=run%2Fdcpomatic;h=ef695eb3f12714d51b15017dc5b9df9e4351f2ea;hb=57c044838c98b900e64cc77eed0a74f75aa42cb9;hp=fff9783e550ee7ccc09035780cb30898763e72b8;hpb=3667c77f9037a7e7efe241fee72626813af94973;p=dcpomatic.git diff --git a/run/dcpomatic b/run/dcpomatic index fff9783e5..ef695eb3f 100755 --- a/run/dcpomatic +++ b/run/dcpomatic @@ -1,29 +1,28 @@ #!/bin/bash -export LD_LIBRARY_PATH=build/src/lib:build/src/wx:build/src/asdcplib/src:$LD_LIBRARY_PATH -export DYLD_LIBRARY_PATH=/Users/carl/Environments/osx/64/lib:build/src/lib:build/src/wx:build/src/asdcplib/src:$DYLD_LIBRARY_PATH +export LD_LIBRARY_PATH=build/src/lib:build/src/wx:build/src/asdcplib/src:/home/c.hetherington/lib:$LD_LIBRARY_PATH +export DYLD_LIBRARY_PATH=build/src/lib:build/src/wx:build/src/asdcplib/src:/Users/carl/Environments/dcpomatic/64/lib if [ "$1" == "--debug" ]; then shift - if [ `which gdb` ]; then - gdb --args build/src/tools/dcpomatic $* - else - lldb build/src/tools/dcpomatic $* - fi + gdb --args build/src/tools/dcpomatic2 $* elif [ "$1" == "--valgrind" ]; then shift - valgrind --tool="memcheck" build/src/tools/dcpomatic $* + valgrind --tool="memcheck" --suppressions=suppressions --track-fds=yes --show-leak-kinds=all --leak-check=full build/src/tools/dcpomatic2 $* elif [ "$1" == "--callgrind" ]; then shift - valgrind --tool="callgrind" build/src/tools/dcpomatic $* + valgrind --tool="callgrind" build/src/tools/dcpomatic2 $* elif [ "$1" == "--massif" ]; then shift - valgrind --tool="massif" build/src/tools/dcpomatic $* + valgrind --tool="massif" build/src/tools/dcpomatic2 $* elif [ "$1" == "--i18n" ]; then shift - LANGUAGE=de_DE.UTF8 LANG=de_DE.UTF8 LC_ALL=de_DE.UTF8 build/src/tools/dcpomatic "$*" + LANGUAGE=de_DE.UTF8 LANG=de_DE.UTF8 LC_ALL=de_DE.UTF8 build/src/tools/dcpomatic2 "$*" elif [ "$1" == "--perf" ]; then shift - perf record build/src/tools/dcpomatic $* + perf record build/src/tools/dcpomatic2 $* +elif [ "$1" == "--scaled" ]; then + shift + ~/src/run_scaled/run_scaled --sleep=5 --scale=0.5 build/src/tools/dcpomatic2 $* else - build/src/tools/dcpomatic $* + build/src/tools/dcpomatic2 $* fi