diff options
author | Maho Nakata <maho@FreeBSD.org> | 2009-01-06 05:41:47 +0000 |
---|---|---|
committer | Maho Nakata <maho@FreeBSD.org> | 2009-01-06 05:41:47 +0000 |
commit | df22f35990b2e4ec65478b811ce7c3b430ca013a (patch) | |
tree | c691de7e1f58d71612485af7ed9f1f9b27823cd0 /java/ecj-bootstrap/files/build.sh | |
parent | - Add another MASTER_SITE (diff) |
Remove following ports.
lang/gcc41-withgcjawt
java/gjdoc
java/ecj-bootstrap
* lang/gcc41 will also be removed by gerald@ very soon.
* these ports are intended for free Java alternative, however,
require too much resources to maintain. java/java-gcj-compat
has also been removed because it's broken for long time.
Diffstat (limited to 'java/ecj-bootstrap/files/build.sh')
-rw-r--r-- | java/ecj-bootstrap/files/build.sh | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/java/ecj-bootstrap/files/build.sh b/java/ecj-bootstrap/files/build.sh deleted file mode 100644 index fb9722a52772..000000000000 --- a/java/ecj-bootstrap/files/build.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/sh -# taken from eclipse.spec of -# <fedora mirror>/fedora/core/5/source/SRPMS/eclipse-3.1.2-1jpp_13fc.src.rpm -# for fedora mirror, please consult following site. -# http://fedora.redhat.com/download/mirrors.html - - # Bootstrapping is 3 parts: - # 0. Patch ecj.zip - # 1. Build ecj with gcj -C - # 2. Build ecj with gcj-built ecj ("javac") - # 3. Re-build ecj with output of 2. - - # Patch ecj.zip first - rm -rf tmp - mkdir tmp - unzip -qq -d tmp jdtcoresrc/src/ecj.zip - cd tmp - patch < ../../files/ecj-patch-Main.java - zip -r ../jdtcoresrc/src/ecj.zip * - cd .. - - # Unzip the "stable compiler" source into a temp dir and build it. - # Note: we don't want to build the CompilerAdapter. - - rm -rf ecj-bootstrap-tmp - mkdir ecj-bootstrap-tmp - unzip -qq -d ecj-bootstrap-tmp jdtcoresrc/src/ecj.zip - rm -f ecj-bootstrap-tmp/org/eclipse/jdt/core/JDTCompilerAdapter.java - - # 1a. Build ecj with gcj -C - cd ecj-bootstrap-tmp - for f in `find . -name '*.java' | cut -c 3-`; do - ${GCJ} -Wno-deprecated -C $f - done - find . -name '*.class' -or -name '*.properties' -or -name '*.rsc' |\ - xargs ${JAR} cf ../ecj-bootstrap.jar - cd .. - - # Delete our modified ecj and restore the backup - rm -rf ecj-bootstrap-tmp - - # 1b. Natively-compile it - - ${GCJ} -fPIC -fjni -findirect-dispatch -shared -Wl,-Bsymbolic -o ecj-bootstrap.jar.so ecj-bootstrap.jar - - ${GCJDBTOOL} -n ecj-bootstrap.db 30000 - ${GCJDBTOOL} -a ecj-bootstrap.db ecj-bootstrap.jar ecj-bootstrap.jar.so - - # 2a. Build ecj - export CLASSPATH=ecj-bootstrap.jar:$ORIGCLASSPATH - export ANT_OPTS="-Dgnu.gcj.precompiled.db.path=`pwd`/ecj-bootstrap.db" - ${ANT} -Dbuild.compiler=gcj -buildfile jdtcoresrc/compilejdtcorewithjavac.xml - - ${GCJ} -fPIC -fjni -findirect-dispatch -shared -Wl,-Bsymbolic \ - -o jdtcoresrc/ecj.jar.so jdtcoresrc/ecj.jar - - ${GCJDBTOOL} -n jdtcoresrc/ecj.db 30000 - ${GCJDBTOOL} -a jdtcoresrc/ecj.db jdtcoresrc/ecj.jar jdtcoresrc/ecj.jar.so - - # Remove our gcj-built ecj - rm ecj-bootstrap.db ecj-bootstrap.jar ecj-bootstrap.jar.so - - # To enSURE we're not using any pre-compiled ecj on the build system, set this - export ANT_OPTS="-Dgnu.gcj.precompiled.db.path=`pwd`/jdtcoresrc/ecj.db" - - # 3. Use this ecj to rebuild itself - export CLASSPATH=`pwd`/jdtcoresrc/ecj.jar:$ORIGCLASSPATH - ${ANT} -Dbuild.compiler=gcj -buildfile jdtcoresrc/compilejdtcore.xml - - # Natively-compile it - ${GCJ} -fPIC -fjni -findirect-dispatch -shared -Wl,-Bsymbolic \ - -o ecj.jar.so ecj.jar - ${GCJDBTOOL} -n ecj.db 30000 - ${GCJDBTOOL} -a ecj.db ecj.jar ecj.jar.so - export ANT_OPTS="-Dgnu.gcj.precompiled.db.path=`pwd`/ecj.db" - rm jdtcoresrc/ecj.db jdtcoresrc/ecj.jar.so - - # Creating native executable - ${GCJ} -O2 -g -Wl,-Bsymbolic -fPIC -fjni -findirect-dispatch --main=org.eclipse.jdt.internal.compiler.batch.Main -o ecj-bootstrap-gcj ecj.jar |