Refactor joystick support
[jpcrr.git] / compile.sh
bloba9b4ed6f14d172dfc4c9ae71f89a37168f0d8b15
1 #!/bin/bash
3 echo "Cleaning up..."
4 find -name "*.class" -exec rm {} \;
5 echo "Compiling exception list processor..."
6 javac -Xlint:unchecked -encoding utf-8 ExceptionDefProcessor.java || exit 1
7 echo "Transforming exceptions list..."
8 java ExceptionDefProcessor exceptions.def || exit 1
9 echo "Compiling main application..."
10 javac -Xlint:unchecked -encoding utf-8 JPCApplication.java || exit 1
11 echo "Compiling ImageMaker..."
12 javac -Xlint:unchecked -encoding utf-8 ImageMaker.java || exit 1
13 echo "Compiling plugins..."
14 javac -Xlint:unchecked -encoding utf-8 org/jpc/plugins/*.java || exit 1
15 echo "Compiling modules..."
16 javac -Xlint:unchecked -encoding utf-8 org/jpc/modules/*.java || exit 1
17 echo "Compiling Lua extensions..."
18 javac -Xlint:unchecked -encoding utf-8 org/jpc/luaextensions/*.java || exit 1
19 echo "Compiling utilities..."
20 javac -Xlint:unchecked -encoding utf-8 org/jpc/utils/*.java || exit 1
21 echo "Compiling SoudTest..."
22 javac -Xlint:unchecked -encoding utf-8 SoundTest.java || exit 1
23 echo "Compling streamtools..."
24 cd streamtools || make
25 echo "Done."