brew -c1 one line configuration summary
At your option: `brew --config -1`.
This commit is contained in:
parent
8a9073fa42
commit
3935a34048
@ -2,7 +2,11 @@ require 'hardware'
|
|||||||
|
|
||||||
module Homebrew extend self
|
module Homebrew extend self
|
||||||
def __config
|
def __config
|
||||||
puts config_s
|
if ARGV.first == '-1'
|
||||||
|
dump_c1
|
||||||
|
else
|
||||||
|
puts config_s
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def llvm
|
def llvm
|
||||||
@ -134,4 +138,22 @@ module Homebrew extend self
|
|||||||
Which Ruby: #{describe_ruby}
|
Which Ruby: #{describe_ruby}
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def dump_c1
|
||||||
|
stuff = []
|
||||||
|
print "#{HOMEBREW_PREFIX}-#{HOMEBREW_VERSION} "
|
||||||
|
print MACOS_FULL_VERSION
|
||||||
|
print "-#{kernel}" if MacOS.version < :lion
|
||||||
|
print ' '
|
||||||
|
if MacOS::Xcode.version > "4.3"
|
||||||
|
print MacOS::Xcode.prefix unless MacOS::Xcode.prefix.to_s =~ %r{^/Applications/Xcode.app}
|
||||||
|
else
|
||||||
|
print MacOS::Xcode.prefix unless MacOS::Xcode.prefix.to_s =~ %r{^/Developer}
|
||||||
|
end
|
||||||
|
print "#{MacOS::Xcode.version}"
|
||||||
|
print "-noclt" unless MacOS::CLT.installed?
|
||||||
|
print " clang-#{clang_build} llvm-#{llvm} "
|
||||||
|
print "#{MacOS::XQuartz.prefix}-#{MacOS::XQuartz.version}" if MacOS::XQuartz.prefix
|
||||||
|
puts
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
5
bin/brew
5
bin/brew
@ -76,6 +76,11 @@ begin
|
|||||||
cmd = ARGV.shift
|
cmd = ARGV.shift
|
||||||
cmd = aliases[cmd] if aliases[cmd]
|
cmd = aliases[cmd] if aliases[cmd]
|
||||||
|
|
||||||
|
if cmd == '-c1'
|
||||||
|
cmd = '--config'
|
||||||
|
ARGV.unshift('-1')
|
||||||
|
end
|
||||||
|
|
||||||
# Add example external commands to PATH before checking.
|
# Add example external commands to PATH before checking.
|
||||||
ENV['PATH'] += ":#{HOMEBREW_REPOSITORY}/Library/Contributions/cmds"
|
ENV['PATH'] += ":#{HOMEBREW_REPOSITORY}/Library/Contributions/cmds"
|
||||||
if which "brew-#{cmd}"
|
if which "brew-#{cmd}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user