Created
November 9, 2010 08:06
-
-
Save qrprat77/668846 to your computer and use it in GitHub Desktop.
My Rubyscript for updating Ruby.
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
#!/usr/local/bin/ruby | |
#gettin' lazy wid dem ruby scripts. | |
Dir.chdir("/your/source/ruby/dir/") | |
["rm ./configure","svn up","autoconf","./configure --enable-shared", | |
"make", "make install", "make clean", "gem update"].each do |one| | |
puts `sudo #{one}` | |
puts one == "make install" ? `ruby -v` : "Next!" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment