-require 'rbconfig'\r
-require 'find'\r
-require 'ftools'\r
-\r
-include Config\r
-\r
-# this was adapted from rdoc's install.rb by ways of Log4r\r
-\r
-$sitedir = CONFIG["sitelibdir"]\r
-unless $sitedir\r
- version = CONFIG["MAJOR"] + "." + CONFIG["MINOR"]\r
- $libdir = File.join(CONFIG["libdir"], "ruby", version)\r
- $sitedir = $:.find {|x| x =~ /site_ruby/ }\r
- if !$sitedir\r
- $sitedir = File.join($libdir, "site_ruby")\r
- elsif $sitedir !~ Regexp.quote(version)\r
- $sitedir = File.join($sitedir, version)\r
- end\r
-end\r
-\r
-# the acual gruntwork\r
-Dir.chdir("lib")\r
-\r
-Find.find("composite_primary_keys", "composite_primary_keys.rb") { |f|\r
- if f[-3..-1] == ".rb"\r
- File::install(f, File.join($sitedir, *f.split(/\//)), 0644, true)\r
- else\r
- File::makedirs(File.join($sitedir, *f.split(/\//)))\r
- end\r
-}\r
+require 'rbconfig'
+require 'find'
+require 'ftools'
+
+include Config
+
+# this was adapted from rdoc's install.rb by ways 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 acual gruntwork
+Dir.chdir("lib")
+
+Find.find("composite_primary_keys", "composite_primary_keys.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
+}