Blame SOURCES/scala-2.10.0-tooltemplate.patch

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