home · contact · privacy
Update/improve tests for lack of compiled files to run redo for.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 9 Mar 2015 11:57:58 +0000 (12:57 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 9 Mar 2015 11:57:58 +0000 (12:57 +0100)
roguelike-server
start_server_client_union.sh

index fd3edbde27f09f9483e6f43772d56b24980272b3..8cd8162bd63e28954354e1d13f0d01fc5a4b09ce 100755 (executable)
@@ -33,8 +33,7 @@ def prep_library():
     """Prepare ctypes library at ./libplomrogue.so"""
     libpath = ("./libplomrogue.so")
     if not os.access(libpath, os.F_OK):
-        raise SystemExit("No library " + libpath +
-                         ", run ./compile-server.sh first?")
+        raise SystemExit("No library " + libpath + ", run ./redo first?")
     libpr = ctypes.cdll.LoadLibrary(libpath)
     libpr.seed_rrand.restype = ctypes.c_uint32
     return libpr
index 54a338617274c33171a10b23513c2edfce42ee51..3b7dccc387636e8a82b4b7aa05a4d4a8cbae7e40 100755 (executable)
@@ -12,7 +12,12 @@ fi
 # Give helpful message to players that want to start without compiling first.
 if [ ! -e ./roguelike-client ]
 then
-    echo 'No ./roguelike-client file found to execute. Try "./redo" first?'
+    echo 'No ./roguelike-client executable found. Try "./redo" first?'
+    false
+fi
+if [ ! -e ./libplomrogue.so ]
+then
+    echo 'No ./libplomrogue.so library found. Try "./redo" first?'
     false
 fi