X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=jpctb;h=7cca6dfb09bb0fad97693a3bc542ae8696544c5a;hb=2495da67787e2eb46e84f8f76c8884b7ad6e0419;hp=c55f90cbb5c6df97094c5f1062034c404070825c;hpb=9989791d333f8acc5fa50cda7b79763908bf59c7;p=jarrg-owen.git diff --git a/jpctb b/jpctb index c55f90c..7cca6df 100755 --- a/jpctb +++ b/jpctb @@ -32,6 +32,13 @@ fail () { echo >&2 "jpctb: $*" exit 127 } + +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: $*" } @@ -73,65 +80,51 @@ fi yppdir="${yohoho%/*}" -cat <&1` + set -e fi -if [ "x$javadir" = x ] && [ x"$JAVA_HOME" != x ] && \ - [ -x "$JAVA_HOME/bin/java" ]; then cat <