diff options
| author | Adam Vandenberg | 2010-03-31 14:58:32 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-04-06 08:22:27 -0700 |
| commit | 4643f0171b96e9e1c0c77c4fc9c79e4e3bd9c9dc (patch) | |
| tree | e3f94b498ecb7284f11e9d9a7a3dcb37923fecc2 /Library | |
| parent | 21aaf5d9ea4360408f60d754a26e29ad98575a0f (diff) | |
| download | brew-4643f0171b96e9e1c0c77c4fc9c79e4e3bd9c9dc.tar.bz2 | |
Move dylib check.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew_doctor.rb | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb index 031509dd4..8a0b50a7c 100644 --- a/Library/Homebrew/brew_doctor.rb +++ b/Library/Homebrew/brew_doctor.rb @@ -1,3 +1,14 @@ +def check_for_stray_dylibs + bad_dylibs = Dir['/usr/local/lib/*.dylib'].select { |f| File.file? f and not File.symlink? f } + if bad_dylibs.count > 0 + puts "You have unbrewed dylibs in /usr/local/lib. These could cause build problems" + puts "when building Homebrew formula. If you no longer need them, delete them:" + puts + puts *bad_dylibs.collect { |f| " #{f}" } + puts + end +end + def brew_doctor read, write = IO.pipe @@ -5,15 +16,8 @@ def brew_doctor read.close $stdout.reopen write - bad_dylibs = Dir['/usr/local/lib/*.dylib'].select { |f| File.file? f and not File.symlink? f } - if bad_dylibs.count > 0 - puts "You have unbrewed dylibs in /usr/local/lib. These could cause build problems" - puts "when building Homebrew formula. If you no longer need them, delete them:" - puts - puts *bad_dylibs.collect { |f| " #{f}" } - puts - end - + check_for_stray_dylibs + if gcc_build < HOMEBREW_RECOMMENDED_GCC puts "Your GCC version is older than the recommended version. It may be advisable" puts "to upgrade to the latest release of Xcode." |
