From: Michal Rokos Date: 2002-04-20T20:30:48+09:00 Subject: [Patch] proper lib handling for mkmf.rb Hello, during installing my exts to ruby-1.7.x I noticed that *.rb sources in lib directory are installed to $(rubylibdir)/lib instead of $(rubylibdir) So here's the patch to make it work as I think it should work. Michal Index: lib/mkmf.rb =================================================================== RCS file: /src/ruby/lib/mkmf.rb,v retrieving revision 1.76 diff -u -r1.76 mkmf.rb --- lib/mkmf.rb 2002/04/19 07:39:39 1.76 +++ lib/mkmf.rb 2002/04/20 11:00:41 @@ -185,7 +185,7 @@ path = Hash.new {|h, i| h[i] = dirs.push([i])[-1]} ifiles.each do |files, dir, prefix| dir = map.inject(dir) {|dir, (orig, new)| dir.gsub(orig, new)} if map - prefix = %r"\A#{Regexp.quote(prefix)}/" if prefix + prefix = %r"\A#{Regexp.quote(prefix)}/?" if prefix if( files[0,2] == "./" ) # install files which are in current working directory. Dir.glob(files) do |f| -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michal Rokos Czech Technical University, Prague E-mail:m.rokos@sh.cvut.cz ICQ:36118339 Jabber:majkl@jabber.sh.cvut.cz -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-