Recurse into subdirectories when fixing install names
This commit is contained in:
		
							parent
							
								
									beb85c0d90
								
							
						
					
					
						commit
						b6e0dfed23
					
				@ -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
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user