summaryrefslogtreecommitdiff
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-22 01:02:44 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-22 01:02:44 +0000
commitec1a89eeb7ef0c58cde69c4e3ee75158da6a4d3a (patch)
tree846c604e33399c20f9df4f213d798080d5f64556 /lib/mkmf.rb
parent4667f459cfb7b372f61ff67f4f31abb06d7d180f (diff)
eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 47abd32..37e06a3 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 == "."