From 109dc4e8a5d9f09541ef2dcb84bd6b6ac2e2fb00 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 8 Mar 2015 16:57:25 +0100 Subject: [PATCH] Server/py: Integrate libplomrogue building into current main building. --- compile.sh => compile-server.sh | 0 plomrogue-server.py | 3 ++- redo | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletion(-) rename compile.sh => compile-server.sh (100%) diff --git a/compile.sh b/compile-server.sh similarity index 100% rename from compile.sh rename to compile-server.sh diff --git a/plomrogue-server.py b/plomrogue-server.py index 5af05f7..56c0044 100755 --- a/plomrogue-server.py +++ b/plomrogue-server.py @@ -26,7 +26,8 @@ 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.sh first?") + raise SystemExit("No library " + libpath + + ", run ./compile-server.sh first?") libpr = ctypes.cdll.LoadLibrary(libpath) libpr.seed_rrand.argtypes = [ctypes.c_uint8, ctypes.c_uint32] libpr.seed_rrand.restype = ctypes.c_uint32 diff --git a/redo b/redo index 4081117..da2637b 100755 --- a/redo +++ b/redo @@ -18,5 +18,12 @@ # for a # workaround. +if [ ! -e ./libplomrogue.so ] +then + echo "non-redo stuff (preparing for future Python port sans redo needs):" + echo "Building library for server's Python variant with mere shell one-liner." + ./compile-server.sh +fi + export PATH=$PATH:$PWD/build/redo_scripts redo "$@" -- 2.30.2