X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=WiktionarySplitter.sh;h=66d38a23cfe8d20309a38b436121fd0cd8002099;hb=370b6e57cca69c186cff4c2cdfd86edfdb3e2f8f;hp=868588012a439bd81025c9cad1e292c0c0732e2a;hpb=f37d4e6b31795ca783ab34c4fff7a388f92090ac;p=DictionaryPC.git diff --git a/WiktionarySplitter.sh b/WiktionarySplitter.sh index 8685880..66d38a2 100755 --- a/WiktionarySplitter.sh +++ b/WiktionarySplitter.sh @@ -1,10 +1,12 @@ # 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" -Xverify:none -classpath src:../Util/src/:../Dictionary/src/:"$ICU4J":"$XERCES":"$COMMONS_COMPRESS" 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 "$@"