Skip to content

Instantly share code, notes, and snippets.

@qrprat77
Created November 9, 2010 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qrprat77/668846 to your computer and use it in GitHub Desktop.
Save qrprat77/668846 to your computer and use it in GitHub Desktop.
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