diff options
Diffstat (limited to 'src/exec/scala.unix.tmpl')
-rw-r--r-- | src/exec/scala.unix.tmpl | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/exec/scala.unix.tmpl b/src/exec/scala.unix.tmpl deleted file mode 100644 index 58f547f926..0000000000 --- a/src/exec/scala.unix.tmpl +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash - -############################################################################## -# Copyright @copyright@ -# -# This is free software; see the distribution for copying conditions. -# There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. -############################################################################## - -cygwin=false; -darwin=false; -case "`uname`" in - CYGWIN*) cygwin=true ;; - Darwin*) darwin=true ;; -esac - -SOURCE=$0; -SCRIPT=`basename "$SOURCE"`; -while [ -h "$SOURCE" ]; do - SCRIPT=`basename "$SOURCE"`; - LOOKUP=`ls -ld "$SOURCE"`; - TARGET=`expr "$LOOKUP" : '.*-> \(.*\)$'`; - if expr "${TARGET:-.}/" : '/.*/$' > /dev/null; then - SOURCE=${TARGET:-.}; - else - SOURCE=`dirname "$SOURCE"`/${TARGET:-.}; - fi; -done; -PREFIX=`dirname "$SOURCE"`/..; -prefix=$PREFIX; -PREFIX=`cd "$PREFIX"; pwd`; - -JAVA=java -JAVA_CLASSPATH=@lib.path@ - -# For Cygwin, switch paths to appropriate format before running java -if $cygwin; then - if [ "$OS" = "Windows_NT" ] && cygpath -m .>/dev/null 2>/dev/null ; then - format=mixed - else - format=windows - fi - JAVA_CLASSPATH=`cygpath --path --$format "$JAVA_CLASSPATH"` -fi - -for arg in "" "$@"; do - [ -z "$arg" ] && continue; - if [ "$arg" = "-version" ]; then - echo "$SCRIPT @version@ -- @copyright@"; - exit 0 - fi -done; - -$JAVA \ - -Xbootclasspath/a:"$JAVA_CLASSPATH" \ - "$@" |