Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 18 lines (12 sloc) 298 Bytes
#!/bin/sh
# compiles all java files from the src to the bin directory
if [ -z $@ ]; then
FILES=$(find src -name "*.java")
else
FILES=$(find src -name "$1")
fi
if [ ! -d bin ]; then
mkdir bin
fi
CLASSPATH=.:bin:src:$(echo lib/*.jar | tr ' ' ':')
javac -d bin -Xlint -cp $CLASSPATH $FILES