From: Christian Heller Date: Wed, 9 Jul 2014 23:45:23 +0000 (+0200) Subject: In start script, give helpful advice to players not having compiled yet. X-Git-Tag: tce~715 X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/blog?a=commitdiff_plain;h=621b0c375b81bfb96473638dcdb231f721f31d4a;p=plomrogue In start script, give helpful advice to players not having compiled yet. --- diff --git a/start_server_client_union.sh b/start_server_client_union.sh index 57133aa..ac161b5 100755 --- a/start_server_client_union.sh +++ b/start_server_client_union.sh @@ -3,6 +3,18 @@ # Abort the script on error. set -e +# Give helpful message to players that want to start without compiling first. +if [ ! -e ./roguelike-server ] +then + echo 'No ./roguelike-server file found to execute. Try "make" first?' + false +fi +if [ ! -e ./roguelike-client ] +then + echo 'No ./roguelike-client file found to execute. Try "make" first?' + false +fi + # Use shell script's arguments for server and pipe server output to log file. # This script's wrapper script will read it out on exit. ./roguelike-server "$@" > log 2>&1 &