summaryrefslogtreecommitdiffstats
path: root/Algorithms/Part-I/1-Percolation/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Algorithms/Part-I/1-Percolation/run.sh')
-rwxr-xr-xAlgorithms/Part-I/1-Percolation/run.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/Algorithms/Part-I/1-Percolation/run.sh b/Algorithms/Part-I/1-Percolation/run.sh
index 5987222..c762d4e 100755
--- a/Algorithms/Part-I/1-Percolation/run.sh
+++ b/Algorithms/Part-I/1-Percolation/run.sh
@@ -1,18 +1,21 @@
#! /bin/bash
-export "CLASSPATH=$CLASSPATH:.:$HOME/algs4/algs4.jar"
+export "CLASSPATH=$CLASSPATH:.:$HOME/algs4/algs4.jar:$HOME/algs4/stdlib.jar"
CLASSES="Percolation PercolationStats"
-rm *.class
+rm *.class *.zip 2>/dev/null
+
for kls in $CLASSES; do
~/algs4/bin/checkstyle ${kls}.java
javac ${kls}.java
- # ~/algs4/bin/findbugs ${kls}.class
done
+~/algs4/bin/findbugs *.class
+echo "RUN..."
java PercolationStats 200 100
java PercolationStats 200 100
-java PercolationStats 2000 100
java PercolationStats 2 10000
java PercolationStats 2 1000000
+
+zip percolation.zip Percolation.java PercolationStats.java