1 ICU4J=/usr/share/java/icu4j-49.1.jar
2 test -r "$ICU4J" || ICU4J=/usr/share/icu4j-55/lib/icu4j.jar
3 JUNIT=/usr/share/java/junit.jar
4 test -r "$JUNIT" || JUNIT=/usr/share/junit/lib/junit.jar
5 XERCES=/usr/share/java/xercesImpl.jar
6 test -r "$XERCES" || XERCES=/usr/share/xerces-2/lib/xercesImpl.jar
7 COMMONS=/usr/share/java/commons-text.jar
8 COMMONS_COMPRESS=/usr/share/java/commons-compress.jar
9 if [ ! -x ../Dictionary ] ; then
10 echo "You need to clone the Dictionary repository (including subprojects) into .."
13 if [ ! -r "$ICU4J" ] ; then
14 echo "ICU4J needs to be installed"
17 if [ ! -r "$JUNIT" ] ; then
18 echo "Junit needs to be installed"
21 if [ ! -r "$XERCES" ] ; then
22 echo "Xerces needs to be installed"
25 if [ ! -r "$COMMONS" ] ; then
26 echo "commons-lang needs to be installed"
29 if [ ! -r "$COMMONS_COMPRESS" ] ; then
30 echo "commons-compress needs to be installed"
33 # -encoding is just a work around for user that still run systems
34 # with non-UTF8 locales
35 javac -encoding UTF-8 -g ../Dictionary/Util/src/com/hughes/util/*.java ../Dictionary/Util/src/com/hughes/util/raf/*.java ../Dictionary/src/com/hughes/android/dictionary/DictionaryInfo.java ../Dictionary/src/com/hughes/android/dictionary/engine/*.java ../Dictionary/src/com/hughes/android/dictionary/C.java src/com/hughes/util/*.java src/com/hughes/android/dictionary/*.java src/com/hughes/android/dictionary/*/*.java src/com/hughes/android/dictionary/*/*/*.java -classpath "$ICU4J:$JUNIT:$XERCES:$COMMONS:$COMMONS_COMPRESS"