Recurse into subdirectories when fixing install names

This commit is contained in:
Jack Nagel 2012-05-22 23:58:05 -05:00
parent beb85c0d90
commit b6e0dfed23

View File

@ -45,10 +45,14 @@ class Keg
end
def dylibs
require 'find'
dylibs = []
if (lib = join 'lib').directory?
lib.children.select{ |pn| pn.extname == '.dylib' and not pn.symlink? }
else
[]
lib.find do |pn|
next if pn.symlink? or pn.directory?
dylibs << pn if pn.extname == '.dylib'
end
end
dylibs
end
end