doctor: style nits

This commit is contained in:
Jack Nagel 2013-05-24 19:51:46 -05:00
parent dd9346ada2
commit 6f6d4e5894

View File

@ -235,27 +235,24 @@ end
def check_for_stray_developer_directory def check_for_stray_developer_directory
# if the uninstaller script isn't there, it's a good guess neither are # if the uninstaller script isn't there, it's a good guess neither are
# any troublesome leftover Xcode files # any troublesome leftover Xcode files
if MacOS::Xcode.version >= "4.3" and File.exist? "/Developer/Library/uninstall-developer-folder" uninstaller = Pathname.new("/Developer/Library/uninstall-developer-folder")
return <<-EOS.undent if MacOS::Xcode.version >= "4.3" && uninstaller.exist? then <<-EOS.undent
You have leftover files from an older version of Xcode. You have leftover files from an older version of Xcode.
You should delete them using: You should delete them using:
/Developer/Library/uninstall-developer-folder #{uninstaller}
EOS EOS
end end
end end
def check_cc def check_cc
unless MacOS::CLT.installed? unless MacOS::CLT.installed?
if MacOS::Xcode.version >= "4.3" if MacOS::Xcode.version >= "4.3" then <<-EOS.undent
return <<-EOS.undent
Experimental support for using Xcode without the "Command Line Tools". Experimental support for using Xcode without the "Command Line Tools".
You have only installed Xcode. If stuff is not building, try installing the You have only installed Xcode. If stuff is not building, try installing the
"Command Line Tools for Xcode" package provided by Apple. "Command Line Tools for Xcode" package provided by Apple.
EOS EOS
else else
return <<-EOS.undent 'No compiler found in /usr/bin!'
No compiler found in /usr/bin!
EOS
end end
end end
end end