7 # this was adapted from rdoc's install.rb by way of Log4r
9 $sitedir = CONFIG["sitelibdir"]
11 version = CONFIG["MAJOR"] + "." + CONFIG["MINOR"]
12 $libdir = File.join(CONFIG["libdir"], "ruby", version)
13 $sitedir = $:.find {|x| x =~ /site_ruby/ }
15 $sitedir = File.join($libdir, "site_ruby")
16 elsif $sitedir !~ Regexp.quote(version)
17 $sitedir = File.join($sitedir, version)
21 # the actual gruntwork
24 Find.find("action_mailer", "action_mailer.rb") { |f|
26 File::install(f, File.join($sitedir, *f.split(/\//)), 0644, true)
28 File::makedirs(File.join($sitedir, *f.split(/\//)))