X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=jpctb;h=ee1482ab97c0cffbac76e3d348abe7e2b0843c71;hb=61c9b37317a18cf120062c10db49f1b935898d3b;hp=5157a054c211afa043f6cad945361f28c1f15101;hpb=27ad770787f1e70c9ec77065aa3511b9efc71b2d;p=jarrg-ian.git diff --git a/jpctb b/jpctb index 5157a05..ee1482a 100755 --- a/jpctb +++ b/jpctb @@ -37,6 +37,7 @@ nojre () { fail "couldn't find the right jre: $* perhaps you should make ypp's java symlink (normally yohoho/java) point to your jre, eg to /usr/lib/jvm/java-6-sun" +} badusage () { fail "bad usage: $*" @@ -80,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 @@ -94,6 +95,7 @@ cat <&2 "control panel failed with exit status $rc" ;; +esac + #---------- create the temporary are and link farm ----------