X-Git-Url: https://gitweb.fperrin.net/?a=blobdiff_plain;f=convert_to_v6.sh;h=60cd01d3d95f6c5a455c88b9ff039b26658e74c4;hb=HEAD;hp=3b6bd5cada6d8eca69d54f1ce708f810e58ae296;hpb=015832c06c5256f88ae0761f47c03cc9c92c8843;p=DictionaryPC.git diff --git a/convert_to_v6.sh b/convert_to_v6.sh index 3b6bd5c..60cd01d 100755 --- a/convert_to_v6.sh +++ b/convert_to_v6.sh @@ -1,3 +1,8 @@ -JAVA=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -test -x "$JAVA" || JAVA=java -"$JAVA" -classpath bin/ com.hughes.android.dictionary.engine.ConvertToV6 "$@" +#!/bin/bash + +RUNNER=./DictionaryPC +if ! test -x "$RUNNER" ; then + . javalibs.sh + RUNNER="$JAVA -classpath bin/ com.hughes.android.dictionary.engine.Runner" +fi +$RUNNER ConvertToV6 "$@"