aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMax Howell2009-12-30 19:21:11 +0000
committerMax Howell2009-12-30 20:52:06 +0000
commit8032b9bdcf0c912dc1eeb9aa94f74a2dfda59f4f (patch)
tree2f4cbf9d43d9c14a09969103697e07ba52c9b018 /bin
parent87b5cfccc80dd555043d4ca26162248c5653937c (diff)
downloadhomebrew-8032b9bdcf0c912dc1eeb9aa94f74a2dfda59f4f.tar.bz2
If Xcode isn't installed, raise
We were raising but in a completely misleading and unintended fashion.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew14
1 files changed, 10 insertions, 4 deletions
diff --git a/bin/brew b/bin/brew
index fffd99d9b..886394574 100755
--- a/bin/brew
+++ b/bin/brew
@@ -219,10 +219,16 @@ begin
raise "Cannot write to #{HOMEBREW_PREFIX}" unless HOMEBREW_PREFIX.writable?
################################################################# warnings
- if MACOS_VERSION >= 10.6
- opoo "You should upgrade to Xcode 3.2.1" if llvm_build < 2206
- else
- opoo "You should upgrade to Xcode 3.1.4" if gcc_build < 5577
+ begin
+ if MACOS_VERSION >= 10.6
+ opoo "You should upgrade to Xcode 3.2.1" if llvm_build < 2206
+ else
+ opoo "You should upgrade to Xcode 3.1.4" if gcc_build < 5577
+ end
+ rescue
+ # the reason we don't abort is some formula don't require Xcode
+ # TODO allow formula to declare themselves as "not needing Xcode"
+ opoo "Xcode is not installed! Builds may fail!"
end
if macports_or_fink_installed?