Browse files

adding sbt

  • Loading branch information...
1 parent 6363de7 commit d8c14736a8616b5eaf366ebc749dac995fa6daaa @btilford committed Nov 4, 2011
Showing with 25 additions and 1 deletion.
  1. +1 −1 android.sh
  2. +23 −0 sbt.sh
  3. +1 −0 setup-lang.sh
View
2 android.sh
@@ -82,7 +82,7 @@ sudo update-alternatives --install /usr/bin/zipalign zipalign "/opt/android/late
sudo update-alternatives --install /usr/bin/zipalign zipalign "/opt/android/sdk-$version/android-sdk-linux/tools/zipalign" 2
-echo "Update sdk? [Y/N] Y:"
+echo "Update sdk? (this takes a while) [Y/N] Y:"
read updateSdk
if [ "$updateSdk" != "N" ]
then
View
23 sbt.sh
@@ -0,0 +1,23 @@
+#! /bin/bash
+
+
+echo "Enter sbt version or hit enter for 0.11.0"
+read version
+if [ "$version" == "" ]
+then
+ version="0.11.0"
+fi
+dl="sbt-launch.jar"
+url="http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt-launch/$version/$dl"
+
+echo "Setting up sbt $version from $url"
+sudo mkdir /opt/sbt
+cd /opt/sbt
+sudo wget "$url"
+
+echo "#! /bin/bash
+java -Xmx512M -jar /opt/sbt/sbt-launch.jar $@" | sudo sh -c "cat > /opt/sbt/sbt"
+sudo chmod a+x /opt/sbt/sbt
+
+
+sudo update-alternatives --install /usr/bin/sbt sbt "/opt/sbt/sbt" 1
View
1 setup-lang.sh
@@ -8,3 +8,4 @@
. fantom.sh
. gosu.sh
. android.sh
+. sbt.sh

0 comments on commit d8c1473

Please sign in to comment.