home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update/improve tests for lack of compiled files to run redo for.
[plomrogue]
/
start_server_client_union.sh
diff --git
a/start_server_client_union.sh
b/start_server_client_union.sh
index ac161b5d596fe0d74432c634772a2ea9b60a4290..3b7dccc387636e8a82b4b7aa05a4d4a8cbae7e40 100755
(executable)
--- a/
start_server_client_union.sh
+++ b/
start_server_client_union.sh
@@
-3,15
+3,21
@@
# Abort the script on error.
set -e
# Abort the script on error.
set -e
+# Don't let any log leftovers from before interfere.
+if [ -e ./log ]
+then
+ rm log
+fi
+
# Give helpful message to players that want to start without compiling first.
# Give helpful message to players that want to start without compiling first.
-if [ ! -e ./roguelike-
server
]
+if [ ! -e ./roguelike-
client
]
then
then
- echo 'No ./roguelike-
server file found to execute. Try "make
" first?'
+ echo 'No ./roguelike-
client executable found. Try "./redo
" first?'
false
fi
false
fi
-if [ ! -e ./
roguelike-client
]
+if [ ! -e ./
libplomrogue.so
]
then
then
- echo 'No ./
roguelike-client file found to execute. Try "make
" first?'
+ echo 'No ./
libplomrogue.so library found. Try "./redo
" first?'
false
fi
false
fi
@@
-19,8
+25,6
@@
fi
# This script's wrapper script will read it out on exit.
./roguelike-server "$@" > log 2>&1 &
# This script's wrapper script will read it out on exit.
./roguelike-server "$@" > log 2>&1 &
-echo TEST >> log
-
# Give server some time to start up and exit on error.
sleep 0.01
# Give server some time to start up and exit on error.
sleep 0.01