diff options
| author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-09-21 10:08:57 +0000 |
|---|---|---|
| committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-09-21 10:08:57 +0000 |
| commit | 36c02683d813ab86782fbc03923b2483696c68e9 (patch) | |
| tree | a39a76034fd5f98839ddbc88feaf72e49f657d14 /ext | |
| parent | 81de6b9d54bf4fe0f7a7bd6bfb98ebd45a6b140e (diff) | |
| download | ruby-36c02683d813ab86782fbc03923b2483696c68e9.tar.gz ruby-36c02683d813ab86782fbc03923b2483696c68e9.tar.xz ruby-36c02683d813ab86782fbc03923b2483696c68e9.zip | |
eban
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/extmk.rb.in | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in index 59536c494..becabfc7c 100644 --- a/ext/extmk.rb.in +++ b/ext/extmk.rb.in @@ -145,11 +145,13 @@ def install_rb(mfile, 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 == "." |
