From e91408ad6fa70488bd190f1c485e34cb103617a7 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Sun, 17 Jun 2012 05:58:29 -0300 Subject: [PATCH] Update master --- executables/LWJake2_Server.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/executables/LWJake2_Server.sh b/executables/LWJake2_Server.sh index c8d18fa..bdefe2e 100755 --- a/executables/LWJake2_Server.sh +++ b/executables/LWJake2_Server.sh @@ -1,3 +1,17 @@ #!/bin/bash + +# Move to script's directory cd `dirname $0` + +# Get the kernel information +UNAME=`uname` + +# Set the proper libpath +if [ "$UNAME" == "Darwin" ]; then + export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:./ +elif [ "$UNAME" == "Linux" ]; then + export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./ +fi + +# Run the server! java -jar lwjake2.jar +set dedicated 1 $@ \ No newline at end of file