Skip to content
Snippets Groups Projects
Commit 21098905 authored by Jack Nagel's avatar Jack Nagel
Browse files

Fix framework install names

parent 5de12d71
No related branches found
No related tags found
No related merge requests found
......@@ -75,19 +75,17 @@ class Keg
def mach_o_files
mach_o_files = []
if (lib = join 'lib').directory?
lib.find do |pn|
next if pn.symlink? or pn.directory?
mach_o_files << pn if pn.dylib? or pn.mach_o_bundle?
end
end
dirs = %w{bin lib Frameworks}
dirs.map! { |dir| join(dir) }
dirs.reject! { |dir| not dir.directory? }
if (bin = join 'bin').directory?
bin.find do |pn|
dirs.each do |dir|
dir.find do |pn|
next if pn.symlink? or pn.directory?
mach_o_files << pn if pn.mach_o_executable?
mach_o_files << pn if pn.dylib? or pn.mach_o_bundle? or pn.mach_o_executable?
end
end
mach_o_files
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment