From 3cd4a494e34b587481a88fd24b4f9107bc35ab7f Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 9 Mar 2015 12:57:58 +0100 Subject: [PATCH] Update/improve tests for lack of compiled files to run redo for. --- roguelike-server | 3 +-- start_server_client_union.sh | 7 ++++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/roguelike-server b/roguelike-server index fd3edbd..8cd8162 100755 --- a/roguelike-server +++ b/roguelike-server @@ -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 diff --git a/start_server_client_union.sh b/start_server_client_union.sh index 54a3386..3b7dccc 100755 --- a/start_server_client_union.sh +++ b/start_server_client_union.sh @@ -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 -- 2.30.2