From 621b0c375b81bfb96473638dcdb231f721f31d4a Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 10 Jul 2014 01:45:23 +0200
Subject: [PATCH] In start script, give helpful advice to players not having
 compiled yet.

---
 start_server_client_union.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)

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 &
-- 
2.30.2