All you have to do is run
sh builder.sh [PATH] [FILENAME]
There are 2 cmd line args.
Path [PATH] and file name [FILENAME].
path is relative to the location of the script, and filename is the filename of the java file w/thout the extension.
cd $1 | |
javac $2.java | |
java $2 | |
rm $2.class |