home · contact · privacy
Server/py: Add startup wrappers supporting Python variant.
[plomrogue] / roguelike_python
diff --git a/roguelike_python b/roguelike_python
new file mode 100755 (executable)
index 0000000..b002721
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# Wrapper to the script so that its suppressed server messages get read on exit.
+./start_server_client_union.sh "$@"
+
+# For some reason, mere sync won't ensure a log is written out, so wait a while.
+sync
+sleep 0.5
+if [ -e ./log ]
+then
+    cat log
+fi