aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-03-31 15:22:20 -0700
committerAdam Vandenberg2010-04-06 08:22:29 -0700
commit53b1e8ed2b9cfda67988eb6c1c9b973be607e147 (patch)
tree460ed2d025e43b5526f8519f985a69f60bcdd214 /Library
parent7963dbfce847e8e13c734fcdc6d5915b0b80d973 (diff)
downloadbrew-53b1e8ed2b9cfda67988eb6c1c9b973be607e147.tar.bz2
Use here-strings.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew_doctor.rb37
1 files changed, 23 insertions, 14 deletions
diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb
index 7d4b5c836..9981bcb50 100644
--- a/Library/Homebrew/brew_doctor.rb
+++ b/Library/Homebrew/brew_doctor.rb
@@ -11,19 +11,24 @@ end
def check_for_x11
unless File.exists? '/usr/X11/lib/libpng.dylib'
- puts "You don't have X11 installed as part of your Xcode installation."
- puts "This isn't required for all formula. But it is expected by some."
+ puts <<-EOS.undent
+ You don't have X11 installed as part of your Xcode installation.
+ This isn't required for all formula. But it is expected by some.
+
+ EOS
end
end
def check_for_other_package_managers
if macports_or_fink_installed?
- puts "You have Macports or Fink installed. This can cause trouble."
- puts "You don't have to uninstall them, but you may like to try temporarily"
- puts "moving them away, eg."
- puts
- puts " sudo mv /opt/local ~/macports"
- puts
+ puts <<-EOS.undent
+ You have Macports or Fink installed. This can cause trouble.
+ You don't have to uninstall them, but you may like to try temporarily
+ moving them away, eg.
+
+ sudo mv /opt/local ~/macports
+
+ EOS
end
end
@@ -32,15 +37,19 @@ def check_gcc_versions
gcc_40 = gcc_40_build
if gcc_42 < RECOMMENDED_GCC_42
- puts "Your gcc 4.2.x version is older than the recommended version. It may be advisable"
- puts "to upgrade to the latest release of Xcode."
- puts
+ puts <<-EOS.undent
+ Your gcc 4.2.x version is older than the recommended version. It may be advisable
+ to upgrade to the latest release of Xcode.
+
+ EOS
end
if gcc_40 < RECOMMENDED_GCC_40
- puts "Your gcc 4.0.x version is older than the recommended version. It may be advisable"
- puts "to upgrade to the latest release of Xcode."
- puts
+ puts <<-EOS.undent
+ Your gcc 4.0.x version is older than the recommended version. It may be advisable
+ to upgrade to the latest release of Xcode.
+
+ EOS
end
end