summaryrefslogtreecommitdiff
path: root/sources/bin
diff options
context:
space:
mode:
authorGilles Dubochet <gilles.dubochet@epfl.ch>2005-12-19 13:49:03 +0000
committerGilles Dubochet <gilles.dubochet@epfl.ch>2005-12-19 13:49:03 +0000
commitac849228490d5a0e2d3f048d649297d5c59b6ade (patch)
tree6314f2c06f37e67dec5827c3f94e25cf844a085c /sources/bin
parentd6c0efe5b4b89a0337f1cdcdabf8c607d81f4ae1 (diff)
downloadscala-ac849228490d5a0e2d3f048d649297d5c59b6ade.tar.gz
scala-ac849228490d5a0e2d3f048d649297d5c59b6ade.tar.bz2
scala-ac849228490d5a0e2d3f048d649297d5c59b6ade.zip
Switching to the new build system and to the ne...
Switching to the new build system and to the new build system. This is a MAJOR commit, so be careful when updating.
Diffstat (limited to 'sources/bin')
-rw-r--r--sources/bin/izpack.symlink.tmpl11
-rw-r--r--sources/bin/nscala-tool.win.tmpl47
-rw-r--r--sources/bin/nscala.unix.tmpl82
-rw-r--r--sources/bin/nscala.win.tmpl49
4 files changed, 0 insertions, 189 deletions
diff --git a/sources/bin/izpack.symlink.tmpl b/sources/bin/izpack.symlink.tmpl
deleted file mode 100644
index 009f8b6eec..0000000000
--- a/sources/bin/izpack.symlink.tmpl
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-DIRNAME="dirname"
-LN="/bin/ln -sf"
-
-COMMANDS="scala scalac scaladoc scalap"
-
-cd `$DIRNAME $0` && \
-for cmd in $COMMANDS; do $LN $1 $cmd; done
-
-# $Id$
diff --git a/sources/bin/nscala-tool.win.tmpl b/sources/bin/nscala-tool.win.tmpl
deleted file mode 100644
index ff9f7475c5..0000000000
--- a/sources/bin/nscala-tool.win.tmpl
+++ /dev/null
@@ -1,47 +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
-if not exist "%SCALA_HOME%\VERSION-@VERSION@" goto error2
-
-set _ARGS=
-:loop
-if '%1' == '' goto exec
-set _ARGS=%_ARGS% %1
-shift
-goto loop
-
-:exec
-set _JAVACMD=java
-set _PROPS=-Dscala.product=@PRODUCT@ -Dscala.version=@VERSION@
-set _MAIN=@MAIN@
-set _TOOLS_CPATH=@TOOLS_CPATH@
-set _LIB_CPATH=@LIB_CPATH@
-
-rem echo %_JAVACMD% %_PROPS% -cp %_CPATH% %_MAIN% %_ARGS%
-%_JAVACMD% %_PROPS% -cp %_TOOLS_CPATH% %_MAIN% -sourcepath %_LIB_CPATH% %_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
-
-: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
diff --git a/sources/bin/nscala.unix.tmpl b/sources/bin/nscala.unix.tmpl
deleted file mode 100644
index 8288bde383..0000000000
--- a/sources/bin/nscala.unix.tmpl
+++ /dev/null
@@ -1,82 +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`;
-
-if [ -z "$SCRIPT" ]; then
- abort "Illegal direct invocation; invoke me through a symbolic link.";
-fi;
-
-_JAVACMD=java
-_TOOLS_CPATH=@TOOLS_CPATH@
-_LIB_CPATH=@LIB_CPATH@
-
-# 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
- _TOOLS_CPATH=`cygpath --path --$format "$_TOOLS_CPATH"`
- _LIB_CPATH=`cygpath --path --$format "$_LIB_CPATH"`
-fi
-
-main=
-case "$SCRIPT" in
- @SCALA@ ) ;;
- @SCALAC@ ) main=scala.tools.nsc.Main;;
- @SCALAI@ ) main=scala.tools.nsc.MainInterpreter;;
- @SCALAP@ ) main=scala.tools.scalap.Main;;
- @SCALATOK@ ) main=scala.tools.nsc.MainTokenMetric;;
- * ) abort "Don't know what to do for $SCRIPT.";;
-esac;
-
-if [ -z "$main" ]; then
- for arg in "" "$@"; do
- [ -z "$arg" ] && continue;
- if [ "$arg" = "-version" ]; then
- echo "$SCRIPT @VERSION@ -- @COPYRIGHT@";
- exit 0
- fi
- done;
- $_JAVACMD \
- -Xbootclasspath/a:"$_LIB_CPATH" \
- "$@"
-else
- $_JAVACMD \
- -Xms16M -Xmx256M \
- -Dscala.product="$SCRIPT" \
- -Dscala.version="@VERSION@" \
- -Dscala.home="$PREFIX" \
- -cp "$_TOOLS_CPATH" \
- $main -sourcepath "$_LIB_CPATH" "$@"
-fi
diff --git a/sources/bin/nscala.win.tmpl b/sources/bin/nscala.win.tmpl
deleted file mode 100644
index feb4655e0f..0000000000
--- a/sources/bin/nscala.win.tmpl
+++ /dev/null
@@ -1,49 +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
-if not exist "%SCALA_HOME%\VERSION-@VERSION@" goto error2
-
-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:@BOOTCPATH@
-
-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