From 3bfea3f9126bb991a1bdf25428a72e17963abf62 Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Wed, 18 Dec 2013 09:03:37 +0100 Subject: Algorithms : install algs4 in gittree/algs4 --- Algorithms/Part-II/1-WordNet/run.sh | 7 ++++--- Algorithms/Part-II/2-SeamCarving/Makefile | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'Algorithms/Part-II') diff --git a/Algorithms/Part-II/1-WordNet/run.sh b/Algorithms/Part-II/1-WordNet/run.sh index 8c01871..7ec80c5 100755 --- a/Algorithms/Part-II/1-WordNet/run.sh +++ b/Algorithms/Part-II/1-WordNet/run.sh @@ -1,16 +1,17 @@ #! /bin/bash -export "CLASSPATH=$CLASSPATH:.:$HOME/algs4/algs4.jar:$HOME/algs4/stdlib.jar" +ALGS4=../../algs4 +export CLASSPATH="$ALGS4/algs4.jar:$ALGS4/stdlib.jar:." CLASSES="SpecializedBFS WordNet SAP Outcast" rm *.class *.zip 2>/dev/null for kls in $CLASSES; do - ~/algs4/bin/checkstyle ${kls}.java + $ALGS4/bin/checkstyle ${kls}.java javac -Xlint ${kls}.java || exit 1 done -~/algs4/bin/findbugs *.class +$ALGS4/bin/findbugs *.class java Outcast || exit 1 diff --git a/Algorithms/Part-II/2-SeamCarving/Makefile b/Algorithms/Part-II/2-SeamCarving/Makefile index 8e826fe..335e05e 100644 --- a/Algorithms/Part-II/2-SeamCarving/Makefile +++ b/Algorithms/Part-II/2-SeamCarving/Makefile @@ -1,6 +1,6 @@ CC = javac -ALGS4 = $(HOME)/algs4 +ALGS4 = ../../algs4 BIN = SeamCarver SRCS = SeamCarver.java CLASSES = PrintEnergy.class PrintSeams.class ResizeDemo.class SCUtility.class ShowEnergy.class ShowSeams.class -- cgit v1.2.3