X-Git-Url: http://gitweb.fperrin.net/?p=DictionaryPC.git;a=blobdiff_plain;f=WiktionarySplitter.sh;h=e160adf35cad7febf3603367fcac678e50c02de2;hp=fb1ea66b435a2553b72b104013f45e59e0315d73;hb=HEAD;hpb=10986d5b49f28aadfb0a7230f400410b2ecb2d1c diff --git a/WiktionarySplitter.sh b/WiktionarySplitter.sh index fb1ea66..e160adf 100755 --- a/WiktionarySplitter.sh +++ b/WiktionarySplitter.sh @@ -1,10 +1,10 @@ +#!/bin/bash + # Run after downloading (data/downloadInputs.sh) to generate # per-language data files from enwiktionary. -ICU4J=/usr/share/java/icu4j-49.1.jar -test -r "$ICU4J" || ICU4J=/usr/share/icu4j-55/lib/icu4j.jar -XERCES=/usr/share/java/xercesImpl.jar -test -r "$XERCES" || XERCES=/usr/share/xerces-2/lib/xercesImpl.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 -"$JAVA" -Xmx4096m -Xverify:none -classpath bin/:"$ICU4J":"$XERCES":"$COMMONS_COMPRESS" com.hughes.android.dictionary.engine.WiktionarySplitter "$@" +RUNNER=./DictionaryPC +if ! test -x "$RUNNER" ; then + . javalibs.sh + RUNNER="$JAVA -Xmx4096m -Xverify:none -classpath bin/:$ICU4J:$COMMONS_COMPRESS com.hughes.android.dictionary.engine.Runner" +fi +$RUNNER WiktionarySplitter "$@"