From 5716247b6948176151c97be24be54df8f870c7dd Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 25 Aug 2015 05:34:27 +0200 Subject: [PATCH] Update/improve tests for lack of compiled files to run redo for. --- roguelike-server | 3 +-- start_server_client_union.sh | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/roguelike-server b/roguelike-server index ef3fdbc..3672296 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 69c959d..3b7dccc 100755 --- a/start_server_client_union.sh +++ b/start_server_client_union.sh @@ -10,14 +10,14 @@ then fi # Give helpful message to players that want to start without compiling first. -if [ ! -e ./roguelike-server ] +if [ ! -e ./roguelike-client ] then - echo 'No ./roguelike-server file found to execute. Try "./redo" first?' + echo 'No ./roguelike-client executable found. Try "./redo" first?' false fi -if [ ! -e ./roguelike-client ] +if [ ! -e ./libplomrogue.so ] then - echo 'No ./roguelike-client file found to execute. Try "./redo" first?' + echo 'No ./libplomrogue.so library found. Try "./redo" first?' false fi -- 2.30.2