From: Christian Heller Date: Mon, 9 Mar 2015 11:57:58 +0000 (+0100) Subject: Update/improve tests for lack of compiled files to run redo for. X-Git-Url: https://plomlompom.com/repos/unset_cookie?a=commitdiff_plain;h=3cd4a494e34b587481a88fd24b4f9107bc35ab7f;p=plomrogue Update/improve tests for lack of compiled files to run redo for. --- 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