X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=compile.sh;h=7cb5a1500fe15f6084a27ae5e0db4cebec5f3808;hb=2182783b7ac6a22c23b37db4ba458ff12a6978dc;hp=9fe8e8d894ff7674cc180050afa43a153d19ed27;hpb=31436827de1a489660b273fb3ec34b00368b79e3;p=DictionaryPC.git diff --git a/compile.sh b/compile.sh index 9fe8e8d..7cb5a15 100755 --- a/compile.sh +++ b/compile.sh @@ -4,10 +4,10 @@ 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 -if [ ! -x ../Util -o ! -x ../Dictionary ] ; then - echo "You need to clone Util and Dictionary repositories into .." +COMMONS=/usr/share/java/commons-text.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 @@ -26,4 +26,10 @@ if [ ! -r "$COMMONS" ] ; then echo "commons-lang needs to be installed" exit 1; fi -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" +if [ ! -r "$COMMONS_COMPRESS" ] ; then + echo "commons-compress needs to be installed" + exit 1; +fi +# -encoding is just a work around for user that still run systems +# with non-UTF8 locales +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"