rm bad-dylibs check, brew doctor does this better
This commit is contained in:
parent
af3e5ad979
commit
a7ac3c539d
@ -53,19 +53,11 @@ ensure
|
||||
system "/bin/stty -raw echo"
|
||||
end
|
||||
|
||||
def badlibs
|
||||
@badlibs ||= begin
|
||||
Dir['/usr/local/lib/*.dylib'].select do |dylib|
|
||||
ENV['dylib'] = dylib
|
||||
File.file? dylib and not File.symlink? dylib and `/usr/bin/file "$dylib"` =~ /shared library/
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def macos_version
|
||||
@macos_version ||= /(10\.\d+)(\.\d+)?/.match(`/usr/bin/sw_vers -productVersion`).captures.first.to_f
|
||||
end
|
||||
|
||||
|
||||
# The block form of Dir.chdir fails later if Dir.CWD doesn't exist which I
|
||||
# guess is fair enough. Also sudo prints a warning message for no good reason
|
||||
Dir.chdir "/usr"
|
||||
@ -139,11 +131,5 @@ else
|
||||
warn "Install \"Command Line Tools for Xcode\": http://developer.apple.com/downloads" unless File.file? "/usr/bin/xcrun"
|
||||
end
|
||||
|
||||
unless badlibs.empty?
|
||||
warn "The following *evil* dylibs exist in /usr/local/lib"
|
||||
puts "They may break builds or worse. You should consider deleting them:"
|
||||
puts *badlibs
|
||||
end
|
||||
|
||||
ohai "Installation successful!"
|
||||
puts "Now type: brew help"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user