X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=compile.sh;h=7b0021f4b9f7f6ffa2201a487ebccad7b51ca145;hb=db867ac06ddeb858f5a70f682e71826346c31895;hp=638c7650f3823484f6b6d2d086b0ab0a953cb64e;hpb=575047a16fba83b34477ea89b6ef67dddc0721ac;p=DictionaryPC.git diff --git a/compile.sh b/compile.sh index 638c765..7b0021f 100755 --- a/compile.sh +++ b/compile.sh @@ -1 +1,34 @@ -javac ../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 /usr/share/java/com.ibm.icu.jar:/usr/share/java/junit.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/commons-lang3.jar +ICU4J=/usr/share/java/icu4j-49.1.jar +test -r "$ICU4J" || ICU4J=/usr/share/icu4j-55/lib/icu4j.jar +JUNIT=/usr/share/java/junit.jar +test -r "$JUNIT" || JUNIT=/usr/share/junit/lib/junit.jar +XERCES=/usr/share/java/xercesImpl.jar +test -r "$XERCES" || XERCES=/usr/share/xerces-2/lib/xercesImpl.jar +COMMONS=/usr/share/java/commons-lang3.jar +test -r "$COMMONS" || COMMONS=/usr/share/commons-lang-3.3/lib/commons-lang.jar +COMMONS_COMPRESS=/usr/share/java/commons-compress.jar +if [ ! -x ../Dictionary ] ; then + echo "You need to clone the Dictionary repository (including subprojects) into .." + exit 1 +fi +if [ ! -r "$ICU4J" ] ; then + echo "ICU4J needs to be installed" + exit 1; +fi +if [ ! -r "$JUNIT" ] ; then + echo "Junit needs to be installed" + exit 1; +fi +if [ ! -r "$XERCES" ] ; then + echo "Xerces needs to be installed" + exit 1; +fi +if [ ! -r "$COMMONS" ] ; then + echo "commons-lang needs to be installed" + exit 1; +fi +if [ ! -r "$COMMONS_COMPRESS" ] ; then + echo "commons-compress needs to be installed" + exit 1; +fi +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"