Skip to content

Instantly share code, notes, and snippets.

@qrprat77 qrprat77/upruby.rb
Created Nov 9, 2010

Embed
What would you like to do?
My Rubyscript for updating Ruby.
#!/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
You can’t perform that action at this time.