[arch-commits] Commit in eclipse-ecj/trunk (PKGBUILD ecj)

Allan McRae allan at archlinux.org
Fri May 8 12:52:17 EDT 2009


    Date: Friday, May 8, 2009 @ 12:52:17
  Author: allan
Revision: 38469

alter launcher script, add symlink to ecj.jar

Modified:
  eclipse-ecj/trunk/PKGBUILD
  eclipse-ecj/trunk/ecj

----------+
 PKGBUILD |    3 ++-
 ecj      |   11 +++--------
 2 files changed, 5 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-05-08 16:35:33 UTC (rev 38468)
+++ PKGBUILD	2009-05-08 16:52:17 UTC (rev 38469)
@@ -15,10 +15,11 @@
 source=(http://download.eclipse.org/eclipse/downloads/drops/R-${pkgver}-${_date}/ecjsrc-${pkgver}.zip
 	ecj)
 md5sums=('c50acc9a39d410188ffc729fdf99af2a'
-         '263d673f04a1ac93e1a7550ffdd970bc')
+         '997d67f1d3e97f65e42e8ace7aba7260')
 
 build() {
   ant
   install -Dm755 ecj.jar $pkgdir/usr/share/java/eclipse-ecj.jar
+  ln -s eclipse-ecj.jar $pkgdir/usr/share/java/ecj.jar
   install -Dm755 ecj ${startdir}/pkg/usr/bin/ecj
 }

Modified: ecj
===================================================================
--- ecj	2009-05-08 16:35:33 UTC (rev 38468)
+++ ecj	2009-05-08 16:52:17 UTC (rev 38469)
@@ -1,9 +1,4 @@
-#! /bin/sh
-case $CLASSPATH in
-  */usr/share/java/eclipse-ecj.jar*) ;;
-  *) CLASSPATH=${CLASSPATH:+$CLASSPATH:}/usr/share/java/eclipse-ecj.jar
-esac
-export CLASSPATH
+#!/bin/sh
 
-exec ${JAVA_HOME}/bin/java \
-  org.eclipse.jdt.internal.compiler.batch.Main ${1+"$@"}
+CLASSPATH=/usr/share/java/ecj.jar${CLASSPATH:+:}$CLASSPATH \
+java org.eclipse.jdt.internal.compiler.batch.Main "$@"



More information about the arch-commits mailing list