Remove "-c1" one-line config
This is broken and nobody noticed, so remove it. Closes Homebrew/homebrew#23878.
This commit is contained in:
parent
0aa7457b79
commit
4a5b65c9f5
@ -2,11 +2,7 @@ require 'hardware'
|
||||
|
||||
module Homebrew extend self
|
||||
def __config
|
||||
if ARGV.first == '-1'
|
||||
dump_c1
|
||||
else
|
||||
dump_verbose_config
|
||||
end
|
||||
dump_verbose_config
|
||||
end
|
||||
|
||||
def llvm
|
||||
@ -150,17 +146,4 @@ module Homebrew extend self
|
||||
puts "Python: #{describe_python}"
|
||||
puts "Ruby: #{describe_ruby}"
|
||||
end
|
||||
|
||||
def dump_c1
|
||||
print "#{HOMEBREW_PREFIX}-#{HOMEBREW_VERSION} "
|
||||
print MACOS_FULL_VERSION
|
||||
print "-#{kernel}" if MacOS.version < :lion
|
||||
print ' '
|
||||
print MacOS::Xcode.prefix unless MacOS::Xcode.default_prefix?
|
||||
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
|
||||
|
||||
@ -70,17 +70,13 @@ begin
|
||||
'abv' => 'info',
|
||||
'dr' => 'doctor',
|
||||
'--repo' => '--repository',
|
||||
'environment' => '--env' # same as gem
|
||||
'environment' => '--env',
|
||||
'-c1' => '--config',
|
||||
}
|
||||
|
||||
cmd = ARGV.shift
|
||||
cmd = aliases[cmd] if aliases[cmd]
|
||||
|
||||
if cmd == '-c1' # Shortcut for one line of configuration
|
||||
cmd = '--config'
|
||||
ARGV.unshift('-1')
|
||||
end
|
||||
|
||||
sudo_check = Set.new %w[ install link pin unpin upgrade ]
|
||||
|
||||
if sudo_check.include? cmd
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user