projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More error message improvements.
[dcpomatic.git]
/
run
/
dcpomatic_batch
diff --git
a/run/dcpomatic_batch
b/run/dcpomatic_batch
index 80cf5291c8a1eee80e2a0af05e2f0eae5b00e438..6ff689ecf47c87e4bc52cb5cb30da729af8a1c2c 100755
(executable)
--- a/
run/dcpomatic_batch
+++ b/
run/dcpomatic_batch
@@
-1,21
+1,23
@@
#!/bin/bash
#!/bin/bash
-export LD_LIBRARY_PATH=build/src/lib:build/src/wx:build/src/asdcplib/src:$LD_LIBRARY_PATH
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
+source $DIR/environment
+
if [ "$1" == "--debug" ]; then
shift
if [ "$1" == "--debug" ]; then
shift
- gdb --args build/src/tools/dcpomatic_batch $*
+ gdb --args build/src/tools/dcpomatic
2
_batch $*
elif [ "$1" == "--valgrind" ]; then
shift
elif [ "$1" == "--valgrind" ]; then
shift
- valgrind --tool="memcheck" --suppressions=valgrind.supp --leak-check=full --show-reachable=yes build/src/tools/dcpomatic_batch $*
+ valgrind --tool="memcheck" --suppressions=valgrind.supp --leak-check=full --show-reachable=yes build/src/tools/dcpomatic
2
_batch $*
elif [ "$1" == "--massif" ]; then
shift
elif [ "$1" == "--massif" ]; then
shift
- valgrind --tool="massif" build/src/tools/dcpomatic_batch $*
+ valgrind --tool="massif" build/src/tools/dcpomatic
2
_batch $*
elif [ "$1" == "--callgrind" ]; then
shift
elif [ "$1" == "--callgrind" ]; then
shift
- valgrind --tool="callgrind" build/src/tools/dcpomatic_batch $*
+ valgrind --tool="callgrind" build/src/tools/dcpomatic
2
_batch $*
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/dcpomatic_batch "$*"
+ LANGUAGE=fr_FR.UTF8 LANG=fr_FR.UTF8 LC_ALL=fr_FR.UTF8 build/src/tools/dcpomatic
2
_batch "$*"
else
else
- build/src/tools/dcpomatic_batch $*
+ build/src/tools/dcpomatic
2
_batch $*
fi
fi