summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Suereth <joshua.suereth@gmail.com>2011-12-20 20:23:42 -0500
committerJosh Suereth <joshua.suereth@gmail.com>2011-12-20 20:23:42 -0500
commit38ad3cab7b547e2c1e083e8d795a763ff7bb6f6d (patch)
tree829c69aae4c9e4d8ccfecdf7e88540c4fb0ea178
parent56a366c854457f842522a481701be2f1f1b318c7 (diff)
downloadscala-38ad3cab7b547e2c1e083e8d795a763ff7bb6f6d.tar.gz
scala-38ad3cab7b547e2c1e083e8d795a763ff7bb6f6d.tar.bz2
scala-38ad3cab7b547e2c1e083e8d795a763ff7bb6f6d.zip
Removing local linux sbt scripts.
Local linux SBT scripts have been removed in favor of using sbt-extras or an alternative windows solution which is TBD.
-rwxr-xr-xxsbt77
-rwxr-xr-xxsbt-debug7
2 files changed, 0 insertions, 84 deletions
diff --git a/xsbt b/xsbt
deleted file mode 100755
index d8cf5db8e8..0000000000
--- a/xsbt
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/usr/bin/env bash
-#
-# by jsuereth and paulp
-
-# always good to fail fast
-set -e
-
-gitignore="$(dirname $0)/.gitignore"
-bootdir="$(dirname $0)/.boot"
-sbtjar="${bootdir}/sbt-launch.jar"
-launchversionfile="${bootdir}/.launchversion"
-sbtversion=0.11.2
-# sbturl="http://typesafe.artifactoryonline.com/typesafe/ivy-snapshots/org.scala-tools.sbt/sbt-launch/$sbtversion/sbt-launch.jar"
-sbturl="http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt-launch/$sbtversion/sbt-launch.jar"
-
-# Check the current stored launch version.
-if [[ -f "$launchversionfile" ]]; then
- storedversion="$(cat $launchversionfile)"
-else
- storedversion=""
-fi
-
-if [[ ! -d "$bootdir" ]]; then
- echo "Creating .boot directory for xsbt"
- pushd $(dirname $0)
- mkdir $bootdir
- popd
-fi
-
-if [[ ! -f "$gitignore" ]]; then
- echo "Creating .gitignore"
- echo ".gitignore" > "$gitignore"
-fi
-
-for ign in .boot
-do
- if ! grep -Fq "$ign" "$gitignore"; then
- echo "Adding $ign to $gitignore."
- echo "$ign" >> "$gitignore"
- fi
-done
-
-# TODO - Check version of SBT launch jar in some kind of tag file so we can pull new versions when needed.
-if [[ ! -f "$sbtjar" ]] || [[ "$storedversion" != "$sbtversion" ]]; then
- if [[ -f "$sbtjar" ]]; then
- echo "SBT launch is out-of-date. Removing old version."
- rm $sbtjar
- fi
- echo "Downloading sbt version $sbtversion to $sbtjar ..."
- echo ""
- # TODO - Do this after downloading the new JAR file...
- echo "$sbtversion" >$launchversionfile
- if [[ $(which curl) ]]; then
- curl --silent "$sbturl" > "$sbtjar"
- elif [[ $(which wget) ]]; then
- pushd $bootdir
- wget $sbturl
- popd
- else
- cat <<EOM
-No means of downloading sbt-launch.jar found. Either:
- * install curl
- * install wget
- * manually download: $sbturl
- and place at: $sbtjar
-EOM
- fi
-fi
-
-java $JAVA_OPTS \
- -XX:+CMSClassUnloadingEnabled \
- -XX:+HeapDumpOnOutOfMemoryError \
- -XX:MaxPermSize=512m \
- -Xmx3g -Xms3g -Xss2M \
- -XX:ReservedCodeCacheSize=200m \
- -XX:+UseParallelGC \
- -jar "$sbtjar" "$@"
diff --git a/xsbt-debug b/xsbt-debug
deleted file mode 100755
index 1281fe99f0..0000000000
--- a/xsbt-debug
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/env bash
-#
-# by jsuereth
-
-JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 ${JAVA_OPTS}"
-
-source $(dirname $0)/xsbt