From f40a7fa2f862a0aec3878868f8a12fe60b797045 Mon Sep 17 00:00:00 2001 From: truenotzero <35774507+truenotzero@users.noreply.github.com> Date: Fri, 23 Feb 2018 20:37:01 +0200 Subject: [PATCH] POSIX support (#168) * POSIX compilation support Added support for compiling from a headless POSIX environment * POSIX launch script * Update compile-posix.sh fixed typo --- compile-posix.sh | 11 +++++++++++ launch.sh | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100644 compile-posix.sh create mode 100644 launch.sh diff --git a/compile-posix.sh b/compile-posix.sh new file mode 100644 index 0000000000..1880dd8b58 --- /dev/null +++ b/compile-posix.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# compilation script for posix-compliant systems + +src=src +dist=dist + +cores=$(echo cores/*) +cores=${cores// /:} + +mkdir -p $dist +javac -d $dist -cp $cores $(find $src -name "*.java") diff --git a/launch.sh b/launch.sh new file mode 100644 index 0000000000..9222538da7 --- /dev/null +++ b/launch.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# launch script +cores=$(echo cores/*) +cores=${cores// /:} +cp=.:dist:$cores + +java -Xmx2048m -Dwzpath=wz -cp $cp net.server.Server