From: Christian Heller Date: Tue, 25 Aug 2015 03:34:27 +0000 (+0200) Subject: Update/improve tests for lack of compiled files to run redo for. X-Git-Tag: tce~336 X-Git-Url: https://plomlompom.com/repos/todos?a=commitdiff_plain;h=5716247b6948176151c97be24be54df8f870c7dd;p=plomrogue Update/improve tests for lack of compiled files to run redo for. --- 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