6873fc8026
Upgraded to Rails 2.0.2, except that we maintain vendor/rails/actionpack/lib/action_controller/routing.rb from Rail 1.2.6 (at least for now), so that Routes don't change. We still get to enjoy Rails's many new features. Also fixed a bug in Chunk-handling: disable WikiWord processing in tags (for real this time).
30 lines
787 B
Ruby
30 lines
787 B
Ruby
require 'rbconfig'
|
|
require 'find'
|
|
require 'ftools'
|
|
|
|
include Config
|
|
|
|
# this was adapted from rdoc's install.rb by way of Log4r
|
|
|
|
$sitedir = CONFIG["sitelibdir"]
|
|
unless $sitedir
|
|
version = CONFIG["MAJOR"] + "." + CONFIG["MINOR"]
|
|
$libdir = File.join(CONFIG["libdir"], "ruby", version)
|
|
$sitedir = $:.find {|x| x =~ /site_ruby/ }
|
|
if !$sitedir
|
|
$sitedir = File.join($libdir, "site_ruby")
|
|
elsif $sitedir !~ Regexp.quote(version)
|
|
$sitedir = File.join($sitedir, version)
|
|
end
|
|
end
|
|
|
|
# the actual gruntwork
|
|
Dir.chdir("lib")
|
|
|
|
Find.find("action_controller", "action_controller.rb", "action_view", "action_view.rb") { |f|
|
|
if f[-3..-1] == ".rb"
|
|
File::install(f, File.join($sitedir, *f.split(/\//)), 0644, true)
|
|
else
|
|
File::makedirs(File.join($sitedir, *f.split(/\//)))
|
|
end
|
|
} |