summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGilles Dubochet <gilles.dubochet@epfl.ch>2006-01-13 19:39:45 +0000
committerGilles Dubochet <gilles.dubochet@epfl.ch>2006-01-13 19:39:45 +0000
commitf7a382d513b136f45abcb3216a6472652d7ef198 (patch)
treea5df94310ebfb0da00f11e6068a6cbe57d36eac2 /src
parentd8d15e97004f3eb52072286bfe727c31ac995a40 (diff)
downloadscala-f7a382d513b136f45abcb3216a6472652d7ef198.tar.gz
scala-f7a382d513b136f45abcb3216a6472652d7ef198.tar.bz2
scala-f7a382d513b136f45abcb3216a6472652d7ef198.zip
Removed 'src/exec'.
Diffstat (limited to 'src')
-rw-r--r--src/exec/scala-tool.unix.tmpl57
-rw-r--r--src/exec/scala-tool.win.tmpl42
-rw-r--r--src/exec/scala.unix.tmpl57
-rw-r--r--src/exec/scala.win.tmpl48
4 files changed, 0 insertions, 204 deletions
diff --git a/src/exec/scala-tool.unix.tmpl b/src/exec/scala-tool.unix.tmpl
deleted file mode 100644
index 5d3a64086b..0000000000
--- a/src/exec/scala-tool.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=@fjbg.jar@:@msil.jar@:@comp.path@:@lib.path@
-TOOL=@tool.class@
-TOOL_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"`
- TOOL_CLASSPATH=`cygpath --path --$format "$TOOL_CLASSPATH"`
-fi
-
-$JAVA \
- -Xms16M -Xmx256M \
- -Dscala.version="@version@" \
- -Dscala.copyright="@copyright@" \
- -Dscala.home="$PREFIX" \
- -Dscala.boot.class.path="$TOOL_CLASSPATH" \
- -cp "$JAVA_CLASSPATH" \
- "$TOOL" "$@" \ No newline at end of file
diff --git a/src/exec/scala-tool.win.tmpl b/src/exec/scala-tool.win.tmpl
deleted file mode 100644
index 7b87904f9a..0000000000
--- a/src/exec/scala-tool.win.tmpl
+++ /dev/null
@@ -1,42 +0,0 @@
-@echo off
-
-rem ##########################################################################
-rem # Copyright @copyright@
-rem #
-rem # This is free software; see the distribution for copying conditions.
-rem # There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
-rem # PARTICULAR PURPOSE.
-rem ##########################################################################
-
-if "%OS%"=="Windows_NT" @setlocal
-if "%OS%"=="Windows_NT" @set SCALA_HOME=%~dp0..
-
-if "%SCALA_HOME%"=="" goto error1
-
-set _ARGS=
-:loop
-if '%1' == '' goto exec
-set _ARGS=%_ARGS% %1
-shift
-goto loop
-
-:exec
-set _JAVACMD=java
-set _MAIN=@tool.class@
-set _TOOLS_CPATH=@fjbg.jar@;@msil.jar@;@comp.path@;@lib.path@
-set _LIB_CPATH=@lib.path@
-set _PROPS=-Dscala.version=@version@ -Dscala.home="%SCALA_HOME%" -Dscala.boot.class.path="%_LIB_CPATH%"
-
-rem echo %_JAVACMD% %_PROPS% -cp %_TOOLS_CPATH% %_MAIN% %_ARGS%
-%_JAVACMD% %_PROPS% -cp %_TOOLS_CPATH% %_MAIN% %_ARGS%
-goto end
-
-rem ##########################################################################
-rem # errors
-
-:error1
-echo ERROR: environment variable SCALA_HOME is undefined. It should point to the directory containing the file "VERSION-@version@".
-goto end
-
-:end
-if "%OS%"=="Windows_NT" @endlocal
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" \
- "$@"
diff --git a/src/exec/scala.win.tmpl b/src/exec/scala.win.tmpl
deleted file mode 100644
index 570bedd981..0000000000
--- a/src/exec/scala.win.tmpl
+++ /dev/null
@@ -1,48 +0,0 @@
-@echo off
-
-rem ##########################################################################
-rem # Copyright @copyright@
-rem #
-rem # This is free software; see the distribution for copying conditions.
-rem # There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
-rem # PARTICULAR PURPOSE.
-rem ##########################################################################
-
-if "%OS%"=="Windows_NT" @setlocal
-if "%OS%"=="Windows_NT" @set SCALA_HOME=%~dp0..
-
-if "%SCALA_HOME%"=="" goto error1
-
-set _ARGS=
-:loop
-if '%1' == '' goto exec
-if '%1' == '-version' goto version
-set _ARGS=%_ARGS% %1
-shift
-goto loop
-
-:exec
-set _JAVACMD=java
-set _JAVAOPT=-Xbootclasspath/a:@lib.path@
-
-rem echo %_JAVACMD% %_JAVAOPT% %_ARGS%
-%_JAVACMD% %_JAVAOPT% %_ARGS%
-goto end
-
-:version
-echo @product@ @version@ -- @copyright@
-goto end
-
-rem ##########################################################################
-rem # errors
-
-:error1
-echo ERROR: environment variable SCALA_HOME is undefined. It should point to the directory containing the file "VERSION-@version@".
-goto end
-
-:error2
-echo ERROR: environment variable SCALA_HOME points to the wrong directory "%SCALA_HOME%". It should point to the directory containing the file "VERSION-@version@".
-goto end
-
-:end
-if "%OS%"=="Windows_NT" @endlocal