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

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

CLASSES="Percolation PercolationStats"

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 PercolationStats 200 100
java PercolationStats 200 100
java PercolationStats 2 10000
java PercolationStats 2 1000000

zip percolation.zip Percolation.java PercolationStats.java