mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
remove confusing comments
This commit is contained in:
parent
13e14ef65a
commit
c32e67b83c
@ -298,7 +298,6 @@ module MacOS extend self
|
|||||||
return @locate_cache[tool] if @locate_cache.has_key? tool
|
return @locate_cache[tool] if @locate_cache.has_key? tool
|
||||||
|
|
||||||
if File.executable? "/usr/bin/#{tool}"
|
if File.executable? "/usr/bin/#{tool}"
|
||||||
# Always prefer the unix style.
|
|
||||||
path = Pathname.new "/usr/bin/#{tool}"
|
path = Pathname.new "/usr/bin/#{tool}"
|
||||||
else
|
else
|
||||||
# Xcrun was provided first with Xcode 4.3 and allows us to proxy
|
# Xcrun was provided first with Xcode 4.3 and allows us to proxy
|
||||||
@ -336,7 +335,6 @@ module MacOS extend self
|
|||||||
Pathname.new "/usr/bin"
|
Pathname.new "/usr/bin"
|
||||||
elsif not xctools_fucked? and system "/usr/bin/xcrun -find make 1>/dev/null 2>&1"
|
elsif not xctools_fucked? and system "/usr/bin/xcrun -find make 1>/dev/null 2>&1"
|
||||||
# Wherever "make" is there are the dev tools.
|
# Wherever "make" is there are the dev tools.
|
||||||
# The new way of finding stuff via locate.
|
|
||||||
Pathname.new(`/usr/bin/xcrun -find make`.chomp).dirname
|
Pathname.new(`/usr/bin/xcrun -find make`.chomp).dirname
|
||||||
elsif File.exist? "#{xcode_prefix}/usr/bin/make"
|
elsif File.exist? "#{xcode_prefix}/usr/bin/make"
|
||||||
# cc stopped existing with Xcode 4.3, there are c89 and c99 options though
|
# cc stopped existing with Xcode 4.3, there are c89 and c99 options though
|
||||||
|
Loading…
x
Reference in New Issue
Block a user