Move dylib check.
This commit is contained in:
parent
21aaf5d9ea
commit
4643f0171b
@ -1,10 +1,4 @@
|
|||||||
def brew_doctor
|
def check_for_stray_dylibs
|
||||||
read, write = IO.pipe
|
|
||||||
|
|
||||||
if fork == nil
|
|
||||||
read.close
|
|
||||||
$stdout.reopen write
|
|
||||||
|
|
||||||
bad_dylibs = Dir['/usr/local/lib/*.dylib'].select { |f| File.file? f and not File.symlink? f }
|
bad_dylibs = Dir['/usr/local/lib/*.dylib'].select { |f| File.file? f and not File.symlink? f }
|
||||||
if bad_dylibs.count > 0
|
if bad_dylibs.count > 0
|
||||||
puts "You have unbrewed dylibs in /usr/local/lib. These could cause build problems"
|
puts "You have unbrewed dylibs in /usr/local/lib. These could cause build problems"
|
||||||
@ -13,6 +7,16 @@ def brew_doctor
|
|||||||
puts *bad_dylibs.collect { |f| " #{f}" }
|
puts *bad_dylibs.collect { |f| " #{f}" }
|
||||||
puts
|
puts
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def brew_doctor
|
||||||
|
read, write = IO.pipe
|
||||||
|
|
||||||
|
if fork == nil
|
||||||
|
read.close
|
||||||
|
$stdout.reopen write
|
||||||
|
|
||||||
|
check_for_stray_dylibs
|
||||||
|
|
||||||
if gcc_build < HOMEBREW_RECOMMENDED_GCC
|
if gcc_build < HOMEBREW_RECOMMENDED_GCC
|
||||||
puts "Your GCC version is older than the recommended version. It may be advisable"
|
puts "Your GCC version is older than the recommended version. It may be advisable"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user