Skip to content

Instantly share code, notes, and snippets.

@relrod
Created February 4, 2012 09:00
Show Gist options
  • Save relrod/1736528 to your computer and use it in GitHub Desktop.
Save relrod/1736528 to your computer and use it in GitHub Desktop.
SBT Install Script for Linux
# bash < <(curl -L http://da.gd/sbtinstall)
# Or, of course:
# bash < <(curl https://raw.github.com/gist/1736528/e9e978c81cc1f8a550973151d3922eede4c9b12a/gistfile1.sh)
mkdir -pv ~/bin/
curl -o ~/bin/sbt-launch.jar http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt-launch/0.11.2/sbt-launch.jar
echo 'java -Xmx512M -jar `dirname $0`/sbt-launch.jar "$@"' > ~/bin/sbt
chmod u+x ~/bin/sbt
echo 'Make sure ~/bin/ is in your $PATH and that you have a working `java` command.'
echo '* DONE *'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment