6 $ruby_version = CONFIG['MAJOR'] + "." + CONFIG['MINOR']
7 $prefix = CONFIG['prefix']
8 $libdir = File.join($prefix,'lib')
9 $rubylibdir = File.join($libdir, 'ruby', $ruby_version)
10 $arch = CONFIG['arch']
11 $archdir = File.join($rubylibdir, $arch)
13 def find(dir, match = /./)
16 Dir.new(".").each{|file|
17 if( file != "." && file != ".." )
21 files.push(File.join(dir,file))
24 files += find(file, match).collect{|f| File.join(dir,f)}
33 rb_files = find(File.join(".","lib"), /.rb$/)
36 File.makedirs($rubylibdir, "#{$archdir}")
37 File.install(f, File.join($archdir,f), 0555, true)
42 instfile = File.join($rubylibdir, origfile.sub("./lib/",""))
43 instdir = File.dirname(instfile)
44 File.makedirs(instdir)
45 File.install(origfile, instfile, 0644, true)