Last active
December 13, 2015 20:08
-
-
Save Rovak/4967148 to your computer and use it in GitHub Desktop.
Install Scala + SBT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
scala_version=2.10.1 | |
sbt_version=0.12.3 | |
cd /opt/ | |
# Install Scala | |
echo "Installing Scala, version: $scala_version" | |
scala_filename="scala-$scala_version" | |
rm -rf scala* | |
if [ ! -f $scala_filename.tgz ] | |
then | |
wget http://www.scala-lang.org/downloads/distrib/files/$scala_filename.tgz | |
fi | |
tar xvf $scala_filename.tgz | |
ln -fs /opt/$scala_filename/bin/scala /usr/local/bin/scala | |
ln -fs /opt/$scala_filename/bin/scaladoc /usr/local/bin/scaladoc | |
# Install SBT | |
sudo rm -rf /opt/sbt* | |
if [ ! -f sbt.tgz ] | |
then | |
wget http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/$sbt_version/sbt.tgz | |
fi | |
tar xvf sbt.tgz | |
ln -fs /opt/sbt/bin/sbt /usr/local/bin/sbt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment