Mercurial > repo
view bin/js @ 10288:2914125a0a85
<oerjan> le/rn tmp//tmp/ is a directory for files that are not worth saving in HackEgo history, but which should still survive a single command. Note that it interacts funnily with HackEgo\'s lock and re-run commit check: files can disappear if you don\'t know what you\'re doing. Basically, don\'t modify files inside and outside tmp/ in the same HackEgo command.
author | HackBot |
---|---|
date | Thu, 16 Feb 2017 17:28:09 +0000 |
parents | 56dcce63901b |
children | 7bf20fcbbe08 |
line wrap: on
line source
#!/bin/sh JAVA_CMD="/usr/bin/java" JAVA_OPTS="" JAVA_CLASSPATH="/usr/share/java/js.jar:/usr/share/java/jline.jar" JAVA_MAIN="org.mozilla.javascript.tools.shell.Main" ## Fix for #512498 ## Change Bootclasspath when using OpenJDK because OpenJDK6 ## bundle his own release of Rhino. ## References: ## <https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/255149> ## <http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=179> ## <http://www.openoffice.org/issues/show_bug.cgi?id=91641> isOpenJDK=`$JAVA_CMD -version 2>&1 | grep -i "OpenJDK" | wc -l` if [ $isOpenJDK -gt 0 ] then JAVA_OPTS="-Xbootclasspath:/usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar" fi $JAVA_CMD -classpath $JAVA_CLASSPATH $JAVA_MAIN -e "$@"