POSIX support (#168)

* POSIX compilation support

Added support for compiling from a headless POSIX environment

* POSIX launch script

* Update compile-posix.sh

fixed typo
This commit is contained in:
truenotzero
2018-02-23 20:37:01 +02:00
committed by Ronan Lana
parent eb4d3d4762
commit f40a7fa2f8
2 changed files with 18 additions and 0 deletions

11
compile-posix.sh Normal file
View File

@@ -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")

7
launch.sh Normal file
View File

@@ -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