mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-14 02:11:58 -04:00
prepare linux build, fix some memory leaks
This commit is contained in:
parent
0fa5c48519
commit
e7db30ca27
13 changed files with 133 additions and 94 deletions
|
@ -1,14 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
temp_file=$(mktemp /tmp/skeldal.XXXXXX.log)
|
||||
CURDIR=`dirname "$0"`
|
||||
|
||||
`dirname $0`/skeldal_bin $* > "$temp_file" 2>&1
|
||||
LD_LIBRARY_PATH=$CURDIR:$LD_LIBRARY_PATH "$CURDIR/skeldal_bin" $* > "$temp_file" 2>&1
|
||||
|
||||
exit_code=$?
|
||||
|
||||
if [ $exit_code -ne 0 ]; then
|
||||
error_message=$(cat "$temp_file")
|
||||
|
||||
|
||||
if command -v zenity > /dev/null; then
|
||||
zenity --warning --no-markup --title="Skeldal ERROR" --text="$error_message"
|
||||
elif command -v kdialog > /dev/null; then
|
||||
|
@ -18,9 +18,11 @@ if [ $exit_code -ne 0 ]; then
|
|||
elif command -v xdg-open > /dev/null; then
|
||||
xdg-open "$temp_file"
|
||||
sleep 5;
|
||||
else
|
||||
else
|
||||
cat "$temp_file"
|
||||
fi
|
||||
fi
|
||||
rm $temp_file
|
||||
exit $exit_code
|
||||
exit $exit_code
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue