chiark / gitweb /
jpctb: Use yppdir not $yohoho
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 22 Aug 2010 18:45:47 +0000 (19:45 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 22 Aug 2010 18:45:47 +0000 (19:45 +0100)
jpctb

diff --git a/jpctb b/jpctb
index 7fc11b8..ee8ff62 100755 (executable)
--- a/jpctb
+++ b/jpctb
@@ -81,8 +81,8 @@ fi
 yppdir="${yohoho%/*}"
 
 # this replicates the java-searching logic from yohoho/yohoho:
-if [ -x "$yohoho/java/bin/java" ]; then
-       yppjava="$yohoho/java/bin/java"
+if [ -x "$yppdir/java/bin/java" ]; then
+       yppjava="$yppdir/java/bin/java"
 elif [ -x "$JAVA_HOME/bin/java" ]; then
        yppjava="$JAVA_HOME/bin/java"
 else
@@ -95,6 +95,7 @@ cat <<END
 jpctb:
    jpctb tree:  "$jpctbdir"
    yohoho:       "$yohoho"
+   ypp dir:      "$yppdir"
    ypp uses:     "$yppjava"
 END