summaryrefslogtreecommitdiffstats
path: root/devel/scala/command-scripts/scalac
diff options
context:
space:
mode:
Diffstat (limited to 'devel/scala/command-scripts/scalac')
-rw-r--r--devel/scala/command-scripts/scalac8
1 files changed, 8 insertions, 0 deletions
diff --git a/devel/scala/command-scripts/scalac b/devel/scala/command-scripts/scalac
new file mode 100644
index 0000000000..7cc07cee6f
--- /dev/null
+++ b/devel/scala/command-scripts/scalac
@@ -0,0 +1,8 @@
+#!/bin/sh
+JAVA_DIR=/usr/share/java
+SCALAC_CLASSPATH=$JAVA_DIR/scala-library.jar:$JAVA_DIR/scala-compiler.jar
+
+exec ${JAVACMD:=java} ${JAVA_OPTS:=-Xmx256M -Xms16M} \
+ -Xbootclasspath/a:$SCALAC_CLASSPATH \
+ -classpath .:$CLASSPATH:$SCALAC_CLASSPATH -Dscala.boot.class.path=$SCALAC_CLASSPATH \
+ scala.tools.nsc.Main "$@"