3 Hardwire paths to installed files and Java binary.
5 --- bin/scalap.orig 2011-08-29 16:44:19.000000000 +0000
7 @@ -48,23 +48,7 @@ case "`uname`" in
10 # Finding the root folder for this Scala distribution
12 -SCRIPT=`basename "$SOURCE"`;
13 -while [ -h "$SOURCE" ]; do
14 - SCRIPT=`basename "$SOURCE"`;
15 - LOOKUP=`ls -ld "$SOURCE"`;
16 - TARGET=`expr "$LOOKUP" : '.*-> \(.*\)$'`;
17 - if expr "${TARGET:-.}/" : '/.*/$' > /dev/null; then
18 - SOURCE=${TARGET:-.};
20 - SOURCE=`dirname "$SOURCE"`/${TARGET:-.};
25 -SCALA_HOME=`dirname "$SOURCE"`
26 -SCALA_HOME=`cd "$SCALA_HOME"; pwd -P`
27 -SCALA_HOME=`cd "$SCALA_HOME"/..; pwd`
28 +SCALA_HOME=@SCALA_HOME@
30 # Remove spaces from SCALA_HOME on windows
32 @@ -150,7 +134,7 @@ if [ -z "$JAVACMD" -a -n "$JAVA_HOME" -a
33 JAVACMD="$JAVA_HOME/bin/java"
37 +"${JAVACMD:=@JAVA_HOME@/bin/java}" \
40 ${CPSELECT}${TOOL_CLASSPATH} \