forked from pelya/commandergenius
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·32 lines (24 loc) · 804 Bytes
/
start.sh
File metadata and controls
executable file
·32 lines (24 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
get_backtrace() {
local exe=$1
local core=$2
echo "ERROR detected, printing core-info ..."
gdb ${exe} \
--core ${core} \
--batch \
--quiet \
-ex "set width 0" \
-ex "set height 0" \
-ex "thread apply all bt full" \
-ex "quit"
echo "HINT: Please send the above output to openlierox@az2000.de."
}
cd data
ulimit -c unlimited # activate core-files
rm core* 2>/dev/null # remove old core-files
bin="/dev/null"
[ -x ../$bin ] || bin="build/Xcode/build/Debug/Commander Genius.app/Contents/MacOS/Commander Genius"
[ -x ../$bin ] || bin=build/Xcode/build/Release/Commander Genius.app/Contents/MacOS/Commander Genius
[ -x ../$bin ] || bin=bin/commandergenius
../$bin "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
mv core* .. 2>/dev/null