2005-12-05 14:11:09 +00:00
|
|
|
source $stdenv/setup
|
2005-09-06 01:00:22 +01:00
|
|
|
|
|
|
|
unzip $src
|
|
|
|
cd jdtcoresrc
|
|
|
|
ant -f compilejdtcorewithjavac.xml
|
|
|
|
|
|
|
|
mkdir -p $out/share/ecj
|
|
|
|
mv ecj.jar $out/share/ecj
|
|
|
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
|
|
|
|
cat >> $out/bin/ecj <<EOF
|
|
|
|
#! /bin/sh
|
|
|
|
|
2005-09-18 00:58:51 +01:00
|
|
|
export JAVA_HOME=$jre
|
2005-09-06 01:00:22 +01:00
|
|
|
export LANG="en_US"
|
|
|
|
|
2005-09-18 00:58:51 +01:00
|
|
|
$jre/bin/java -cp $out/share/ecj/ecj.jar org.eclipse.jdt.internal.compiler.batch.Main \$@
|
2005-09-06 01:00:22 +01:00
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod u+x $out/bin/ecj
|