#! /bin/bash export "CLASSPATH=$CLASSPATH:.:$HOME/algs4/algs4.jar:$HOME/algs4/stdlib.jar" CLASSES="PointSET KdTree" rm *.class *.zip 2>/dev/null echo "javac RectHV.java" && javac RectHV.java for kls in $CLASSES; do ~/algs4/bin/checkstyle ${kls}.java echo "javac ${kls}.java" && javac ${kls}.java || exit 1 done ~/algs4/bin/findbugs *.class for kls in Speed KdTreeVisualizer NearestNeighborVisualizer RangeSearchVisualizer; do echo "javac ${kls}.java" && javac ${kls}.java done echo "RUN..." java Speed input1M.txt java KdTreeVisualizer circle10.txt java RangeSearchVisualizer input10K.txt java NearestNeighborVisualizer input10K.txt java RangeSearchVisualizer input100K.txt java NearestNeighborVisualizer input100K.txt java RangeSearchVisualizer input1M.txt java NearestNeighborVisualizer input1M.txt zip kdtree.zip PointSET.java KdTree.java