X-Git-Url: http://gitweb.fperrin.net/?p=DictionaryPC.git;a=blobdiff_plain;f=convert_to_v6.sh;fp=convert_to_v6.sh;h=2443c1cf086539b1016ae08d7454e9cdec1bde9a;hp=3b6bd5cada6d8eca69d54f1ce708f810e58ae296;hb=1a8eefc20fdaaf9c8924c1ab0e98e6a594b32131;hpb=84b14ea9dd8885e5084109844089f3fc813283f1 diff --git a/convert_to_v6.sh b/convert_to_v6.sh index 3b6bd5c..2443c1c 100755 --- a/convert_to_v6.sh +++ b/convert_to_v6.sh @@ -1,3 +1,7 @@ -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 "$@" +RUNNER=./DictionaryPC +if ! test -x "$RUNNER" ; then + JAVA=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java + test -x "$JAVA" || JAVA=java + RUNNER="$JAVA -classpath bin/ com.hughes.android.dictionary.engine.Runner" +fi +$RUNNER ConvertToV6 "$@"