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 end
def dylibs def dylibs
require 'find'
dylibs = []
if (lib = join 'lib').directory? if (lib = join 'lib').directory?
lib.children.select{ |pn| pn.extname == '.dylib' and not pn.symlink? } lib.find do |pn|
else next if pn.symlink? or pn.directory?
[] dylibs << pn if pn.extname == '.dylib'
end end
end end
dylibs
end
end end