diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-09-22 01:02:44 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-09-22 01:02:44 +0000 |
commit | 3e7de9238bd816ccd96b5ec28f3ff3667b2c6f88 (patch) | |
tree | 846c604e33399c20f9df4f213d798080d5f64556 /lib | |
parent | af86fe1e791c16f25e8e117e6c2db7c38dfe8d95 (diff) | |
download | ruby-3e7de9238bd816ccd96b5ec28f3ff3667b2c6f88.tar.gz ruby-3e7de9238bd816ccd96b5ec28f3ff3667b2c6f88.tar.xz ruby-3e7de9238bd816ccd96b5ec28f3ff3667b2c6f88.zip |
eban
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mkmf.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 47abd321b..37e06a3a1 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -129,11 +129,13 @@ def install_rb(mfile, dest, srcdir = nil) libdir = srcdir + "/" + libdir if srcdir path = [] dir = [] - Find.find(libdir) do |f| - next unless /\.rb$/ =~ f - f = f[libdir.length+1..-1] - path.push f - dir |= File.dirname(f) + if File.directory? libdir + Find.find(libdir) do |f| + next unless /\.rb$/ =~ f + f = f[libdir.length+1..-1] + path.push f + dir |= File.dirname(f) + end end for f in dir next if f == "." |