]> gitweb.fperrin.net Git - DictionaryPC.git/blob - compile.sh
Add ES-CA dictionary to generation list.
[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 if [ ! -x ../Util -o ! -x ../Dictionary ] ; then
10     echo "You need to clone Util and Dictionary repositories into .."
11     exit 1
12 fi
13 if [ ! -r "$ICU4J" ] ; then
14     echo "ICU4J needs to be installed"
15     exit 1;
16 fi
17 if [ ! -r "$JUNIT" ] ; then
18     echo "Junit needs to be installed"
19     exit 1;
20 fi
21 if [ ! -r "$XERCES" ] ; then
22     echo "Xerces needs to be installed"
23     exit 1;
24 fi
25 if [ ! -r "$COMMONS" ] ; then
26     echo "commons-lang needs to be installed"
27     exit 1;
28 fi
29 javac -g ../Util/src/com/hughes/util/*.java ../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/android/dictionary/*.java src/com/hughes/android/dictionary/*/*.java src/com/hughes/android/dictionary/*/*/*.java -classpath "$ICU4J:$JUNIT:$XERCES:$COMMONS"