Skip to content

Instantly share code, notes, and snippets.

@tmbo
Created October 23, 2012 23:42
Show Gist options
  • Save tmbo/3942618 to your computer and use it in GitHub Desktop.
Save tmbo/3942618 to your computer and use it in GitHub Desktop.
Shellgame installer
echo " "
echo " _____ _____ _____ "
echo "| __| | |"
echo "|__ | --| | | |"
echo "|_____|_____|_|_|_|"
echo "Shellgame installer"
echo ""
command -v brew >/dev/null 2>&1 || {
echo ""
echo "~~~~ Installing homebrew ~~~~"
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
}
command -v node >/dev/null 2>&1 || {
echo ""
echo "~~~~ Installing node ~~~~"
brew install node
}
echo ""
echo "~~~~ Installing node modules ~~~~"
echo "~>>> BUT We need your password for that <<<~"
command -v coffee >/dev/null 2>&1 || {
echo ""
echo "~~~~ Installing coffee ~~~~"
sudo npm install coffee-script -g
}
echo ""
echo "!!!! Finished installing node modules !!!!"
command -v sbt >/dev/null 2>&1 || {
echo ""
echo "~~~~ Installing sbt ~~~~"
brew install sbt
}
command -v git >/dev/null 2>&1 || {
echo ""
echo "~~~~ Installing git ~~~~"
brew install git
}
echo ""
echo "~~~~ Cloning shellgame server ~~~~"
git clone git@github.com:tmbo/wwwsrv.git shellgame-server
cd shellgame-server
echo ""
echo "~~~~ Cloning shellgame ~~~~"
git clone git@github.com:scalableminds/shellgame.git
echo ""
echo "~~~~ Cloning shellgame assets ~~~~"
git clone git@github.com:scalableminds/shellgame-assets.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment