X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=WiktionarySplitter.sh;h=66d38a23cfe8d20309a38b436121fd0cd8002099;hb=0a53dc44bc2c7a10cc7bd073499b0d01289baed3;hp=5c4a7528cb02c828c54e4f6ca58f54814bcc7302;hpb=f73bc969da1b56b315b7de9660a1f5e0ee5fddcc;p=DictionaryPC.git diff --git a/WiktionarySplitter.sh b/WiktionarySplitter.sh index 5c4a752..66d38a2 100755 --- a/WiktionarySplitter.sh +++ b/WiktionarySplitter.sh @@ -1,3 +1,12 @@ # Run after downloading (data/downloadInputs.sh) to generate # per-language data files from enwiktionary. -/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -classpath src:../Util/src/:../Dictionary/src/:/usr/share/java/com.ibm.icu.jar:/usr/share/java/xercesImpl.jar com.hughes.android.dictionary.engine.WiktionarySplitter "$@" +RUNNER=./DictionaryPC +if ! test -x "$RUNNER" ; then + ICU4J=/usr/share/java/icu4j-49.1.jar + test -r "$ICU4J" || ICU4J=/usr/share/icu4j-55/lib/icu4j.jar + COMMONS_COMPRESS=/usr/share/java/commons-compress.jar + JAVA=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java + test -x "$JAVA" || JAVA=java + RUNNER="$JAVA -Xmx4096m -Xverify:none -classpath bin/:$ICU4J:$COMMONS_COMPRESS com.hughes.android.dictionary.engine.Runner" +fi +$RUNNER WiktionarySplitter "$@"