Blame SOURCES/scala-2.10.0-tooltemplate.patch

0cd607
diff -up scala-2.10.0-RC3/src/compiler/scala/tools/ant/templates/tool-unix.tmpl.tool scala-2.10.0-RC3/src/compiler/scala/tools/ant/templates/tool-unix.tmpl
0cd607
--- scala-2.10.0-RC3/src/compiler/scala/tools/ant/templates/tool-unix.tmpl.tool	2012-11-21 17:01:54.000000000 +0100
0cd607
+++ scala-2.10.0-RC3/src/compiler/scala/tools/ant/templates/tool-unix.tmpl	2012-11-25 14:55:22.583111734 +0100
0cd607
@@ -68,7 +68,16 @@ if uname | grep -q ^MINGW; then
0cd607
 fi
0cd607
 
0cd607
 # Finding the root folder for this Scala distribution
0cd607
-SCALA_HOME="$(findScalaHome)"
0cd607
+export JAVA_HOMe=/usr/share/jvm/java
0cd607
+
0cd607
+[ -r @@JAVADIR@@-utils/java-functions ] && . @@JAVADIR@@-utils/java-functions || exit 1
0cd607
+
0cd607
+set_javacmd || exit 3
0cd607
+check_java_env || exit 4
0cd607
+set_jvm_dirs || exit 5
0cd607
+
0cd607
+export SCALA_HOME=@@DATADIR@@/scala
0cd607
+
0cd607
 SEP=":"
0cd607
 
0cd607
 # Possible additional command line options