Merge fixes in r10 maint branch
[jpcrr.git] / compile.sh
blob290cb4d615ef22b7a34a8994ba1bdeacbf8ad91e
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."