summaryrefslogtreecommitdiffstats
path: root/Algorithms/Part-I/5-KdTrees/run.sh
blob: 04a4561a7e2657bfebe93951ab270e3618ab214a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /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
done
~/algs4/bin/findbugs *.class

echo "RUN..."
for kls in KdTreeVisualizer NearestNeighborVisualizer RangeSearchVisualizer; do
    echo "javac ${kls}.java" && javac ${kls}.java && java ${kls}
done


zip kdtree.zip PointSET.java KdTree.java