7 # this was adapted from rdoc's install.rb by ways 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)
24 Find.find("composite_primary_keys", "composite_primary_keys.rb") { |f|
26 File::install(f, File.join($sitedir, *f.split(/\//)), 0644, true)
28 File::makedirs(File.join($sitedir, *f.split(/\//)))