Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
copy old os x script that uses rvm for backup
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
set -e | ||
|
||
echo "Installs Homebrew for installing other software" | ||
/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)" | ||
brew update | ||
|
||
echo "Installs RVM (Ruby Version Manager) for handling Ruby installation" | ||
curl -kL get.rvm.io | bash -s stable | ||
source ~/.rvm/scripts/rvm | ||
|
||
echo "Install Ruby" | ||
rvm install 1.9.3-p194 | ||
rvm use 1.9.3-p194 --default | ||
|
||
gem install bundler --no-rdoc --no-ri | ||
gem install rails --no-rdoc --no-ri | ||
|
||
echo -e "\n- - - - - -\n" | ||
echo -e "Now we are going to print some information to check that everything is done:\n" | ||
|
||
echo -n "Should be brew 0.8 or higher: brew " | ||
brew -v | ||
echo -n "Should be sqlite 3.7.3 or higher: sqlite " | ||
sqlite3 --version | ||
echo -n "Should be rvm 1.6.32 or higher: " | ||
rvm --version | sed '/^.*$/N;s/\n//g' | cut -c 1-10 | ||
echo -n "Should be ruby 1.9.3-p194: " | ||
ruby -v | cut -d " " -f 2 | ||
echo -n "Should be Rails 3.2.2 or higher: " | ||
rails -v | ||
echo -e "\n- - - - - -\n" | ||
|
||
echo "If the versions match, everything is installed correctly. If the versions | ||
don't match or errors are shown, something went wrong with the automated process | ||
and we will help you do the installation the manual way at the event. | ||
Congrats!" |