summaryrefslogtreecommitdiffstats
path: root/Algorithms/Part-I/1-Percolation/run.sh
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-03-05 15:17:52 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-11-15 17:38:43 +0100
commitfe5a49b44178c42348e7cd1ebc20adcdbf66a720 (patch)
treec1fa5527b51bc8b439deb3c9f59ef03daafa2700 /Algorithms/Part-I/1-Percolation/run.sh
parent9b03cb3429f8e1f1196ef82801e61941c71f67f8 (diff)
downloadcoursera-fe5a49b44178c42348e7cd1ebc20adcdbf66a720.zip
coursera-fe5a49b44178c42348e7cd1ebc20adcdbf66a720.tar.gz
Algorithms-I : 1-Percolation: update run.sh
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