Simplify the previous commit a bit.

This commit is contained in:
Jung-uk Kim
2012-09-14 22:13:10 +00:00
parent f2f668884c
commit 2a39a6d67e
2 changed files with 2 additions and 3 deletions

View File

@@ -121,8 +121,7 @@ CONFIGURE_ARGS+= --disable-examples
.if ${PORT_OPTIONS:MECJ}
post-patch:
@${SED} -e 's|%%ECJ_JAR%%|${DISTDIR}/${ECJ_JAR}|' \
-e 's|%%JAVA_CMD%%|${JAVA_HOME}/bin/java|' < \
${FILESDIR}/ecj.sh.in > ${WRKDIR}/ecj
-e 's|%%JAVA%%|${JAVA}|' < ${FILESDIR}/ecj.sh.in > ${WRKDIR}/ecj
@${CHMOD} 755 ${WRKDIR}/ecj
.endif

View File

@@ -1,2 +1,2 @@
#!/bin/sh
"%%JAVA_CMD%%" -classpath "%%ECJ_JAR%%" org.eclipse.jdt.internal.compiler.batch.Main "${@:--help}"
"%%JAVA%%" -classpath "%%ECJ_JAR%%" org.eclipse.jdt.internal.compiler.batch.Main "${@:--help}"