Add color selection to subtitle script
[jpcrr.git] / compile.sh
blob7fae2cb667a01c7ded822ab9edc491928a0f364a
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 exceptiondefs/ExceptionDefProcessor.java || exit 1
7 echo "Transforming exceptions list..."
8 java exceptiondefs.ExceptionDefProcessor exceptiondefs/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 "Compling streamtools..."
20 cd streamtools || make
21 echo "Done."