projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Hide the endless stream of warnings from wx/GTK.
[dcpomatic.git]
/
run
/
dcpomatic
diff --git
a/run/dcpomatic
b/run/dcpomatic
index ef695eb3f12714d51b15017dc5b9df9e4351f2ea..429139dac3794494b938f6f76e746449e840cbf3 100755
(executable)
--- a/
run/dcpomatic
+++ b/
run/dcpomatic
@@
-1,28
+1,33
@@
#!/bin/bash
#!/bin/bash
-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
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
+source $DIR/environment
+binary=$build/src/tools/dcpomatic2
+
if [ "$1" == "--debug" ]; then
shift
if [ "$1" == "--debug" ]; then
shift
- gdb --args
build/src/tools/dcpomatic2
$*
+ gdb --args
$binary
$*
elif [ "$1" == "--valgrind" ]; then
shift
elif [ "$1" == "--valgrind" ]; then
shift
- valgrind --tool="memcheck" --suppressions=suppressions --track-fds=yes --show-leak-kinds=all --leak-check=full
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
elif [ "$1" == "--callgrind" ]; then
shift
- valgrind --tool="callgrind"
build/src/tools/dcpomatic2
$*
+ valgrind --tool="callgrind"
$binary
$*
elif [ "$1" == "--massif" ]; then
shift
elif [ "$1" == "--massif" ]; then
shift
- valgrind --tool="massif"
build/src/tools/dcpomatic2
$*
+ valgrind --tool="massif"
$binary
$*
elif [ "$1" == "--i18n" ]; then
shift
elif [ "$1" == "--i18n" ]; then
shift
- LANGUAGE=de_DE.UTF8 LANG=de_DE.UTF8 LC_ALL=de_DE.UTF8
build/src/tools/dcpomatic2
"$*"
+ LANGUAGE=de_DE.UTF8 LANG=de_DE.UTF8 LC_ALL=de_DE.UTF8
$binary
"$*"
elif [ "$1" == "--perf" ]; then
shift
elif [ "$1" == "--perf" ]; then
shift
- perf record
build/src/tools/dcpomatic2
$*
+ perf record
$binary
$*
elif [ "$1" == "--scaled" ]; then
shift
elif [ "$1" == "--scaled" ]; then
shift
- ~/src/run_scaled/run_scaled --sleep=5 --scale=0.5 build/src/tools/dcpomatic2 $*
+ ~/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
else
- build/src/tools/dcpomatic2 $*
+ $binary $* 2> >(grep -v Gtk-CRITICAL | grep -v Gtk-WARNING)
fi
fi