Created
December 4, 2012 22:04
-
-
Save CruzR/4209298 to your computer and use it in GitHub Desktop.
LPC: Build script for BloodMoon
This file contains 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
#!/bin/sh | |
# Fix annoying UTF-8 warnings | |
sed -i 's/ \xa9 / \xc2\xa9 /' `find src -name '*.java'` | |
# Fix Windows paths | |
sed -i 's/\\\\/\//g' `find src -name '*.java'` | |
sed -i 's/\\/\//g' `find Resources -name '*.maze'` | |
# Build class files | |
if [ -d bin ]; then | |
rm -rf bin; | |
fi | |
mkdir bin | |
javac -d bin `find src -name '*.java'` | |
# Build jar | |
cd bin | |
jar cfe ../BloodMoon.jar Program . | |
cd .. |
This file contains 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
#!/bin/sh | |
java -jar BloodMoon.jar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment