]> gitweb.fperrin.net Git - DictionaryPC.git/blob - compile.sh
Add support for generating Romani dictionary.
[DictionaryPC.git] / compile.sh
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-lang3.jar
8 test -r "$COMMONS" || COMMONS=/usr/share/commons-lang-3.3/lib/commons-lang.jar
9 COMMONS_COMPRESS=/usr/share/java/commons-compress.jar
10 if [ ! -x ../Dictionary ] ; then
11     echo "You need to clone the Dictionary repository (including subprojects) into .."
12     exit 1
13 fi
14 if [ ! -r "$ICU4J" ] ; then
15     echo "ICU4J needs to be installed"
16     exit 1;
17 fi
18 if [ ! -r "$JUNIT" ] ; then
19     echo "Junit needs to be installed"
20     exit 1;
21 fi
22 if [ ! -r "$XERCES" ] ; then
23     echo "Xerces needs to be installed"
24     exit 1;
25 fi
26 if [ ! -r "$COMMONS" ] ; then
27     echo "commons-lang needs to be installed"
28     exit 1;
29 fi
30 if [ ! -r "$COMMONS_COMPRESS" ] ; then
31     echo "commons-compress needs to be installed"
32     exit 1;
33 fi
34 javac -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"