wok-6.x annotate ecj/stuff/ecj.sh.part @ rev 12525
Up: xine-lib (1.2.1) Split fonts and clean receipt
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 25 00:34:41 2012 +0200 (2012-04-25) |
parents | |
children |
rev | line source |
---|---|
rcx@3797 | 1 |
rcx@3797 | 2 if [ -n "$ECJ_VERSION" ] ; then |
rcx@3797 | 3 ECJ_JAR="ecj-$ECJ_VERSION.jar" |
rcx@3797 | 4 else |
rcx@3797 | 5 ECJ_JAR="ecj.jar" |
rcx@3797 | 6 fi |
rcx@3797 | 7 |
rcx@3797 | 8 if [ -z "$JAVA" ] ; then |
rcx@3797 | 9 if [ -n "$(which java)" ] ; then |
rcx@3797 | 10 JAVA=java |
rcx@3797 | 11 elif [ -n "$(which jamvm)" ] ; then |
rcx@3797 | 12 JAVA=jamvm |
rcx@3797 | 13 elif [ -n "$(which gij)" ] ; then |
rcx@3797 | 14 JAVA=gij |
rcx@3797 | 15 elif [ -n "$(which kaffe)" ] ; then |
rcx@3797 | 16 JAVA=kaffe |
rcx@3797 | 17 else |
rcx@3797 | 18 echo "Java interpreter not found" |
rcx@3797 | 19 exit 1 |
rcx@3797 | 20 fi |
rcx@3797 | 21 fi |
rcx@3797 | 22 |
rcx@3797 | 23 $JAVA -cp /usr/share/java/$ECJ_JAR org.eclipse.jdt.internal.compiler.batch.Main "$@" |