summaryrefslogtreecommitdiffstats
path: root/Algorithms/Part-I/3-Collinear/run.sh
blob: 154d8d7382767c23865c01a8587587ce693bfdbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /bin/bash

export "CLASSPATH=$CLASSPATH:.:$HOME/algs4/algs4.jar:$HOME/algs4/stdlib.jar"

CLASSES="Point Brute Fast"

rm *.class *.zip 2>/dev/null

for kls in $CLASSES; do
    ~/algs4/bin/checkstyle ${kls}.java
    javac ${kls}.java
done
~/algs4/bin/findbugs *.class

echo "RUN..."
# java -enableassertions Point
# java Brute input6.txt
# java Brute input8.txt
java Brute random152.txt
# java Fast input6.txt
# java Fast input8.txt
java Fast random152.txt

zip collinear.zip Point.java Brute.java Fast.java