Created
June 22, 2023 05:46
-
-
Save AntumDeluge/aea8990e792475379cc1052e0a444159 to your computer and use it in GitHub Desktop.
Shell script to run Stendhal combat simulation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
classpath="./:./libs/*:./build/build_stendhaltools/:./build/build_server/:./build/build_server_script/:./build/build_server_maps/:./build/build_server_xmlconf/" | |
defines=() | |
params=() | |
for arg in "$@"; do | |
echo "${arg}" | grep -q "^\-D"; | |
ret=$? | |
if [[ ${ret} -eq 0 ]]; then | |
defines+=("${arg}"); | |
else | |
params+=("${arg}") | |
fi | |
done | |
java -cp ${classpath} "${defines[@]}" games.stendhal.tools.SimulateCombat "${params[@]}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment