--config -> config

This commit is contained in:
Adam Vandenberg 2014-04-26 23:31:39 -07:00
parent 48cd833a15
commit d4b0599a86
12 changed files with 19 additions and 19 deletions

View File

@ -450,7 +450,7 @@ _brew ()
2>/dev/null | sed -e "s/\.rb//g" -e "s/brew-//g" \ 2>/dev/null | sed -e "s/\.rb//g" -e "s/brew-//g" \
-e "s/.*\///g") -e "s/.*\///g")
__brewcomp " __brewcomp "
--cache --cellar --config --cache --cellar config
--env --prefix --repository --env --prefix --repository
audit audit
cat cat

View File

@ -77,7 +77,7 @@ local -a formulae installed_formulae installed_taps outdated_formulae running_se
_arguments \ _arguments \
'(-v)-v[verbose]' \ '(-v)-v[verbose]' \
'(--cellar)--cellar[brew cellar]' \ '(--cellar)--cellar[brew cellar]' \
'(--config)--config[brew configuration]' \ '(config)--config[brew configuration]' \
'(--env)--env[brew environment]' \ '(--env)--env[brew environment]' \
'(--repository)--repository[brew repository]' \ '(--repository)--repository[brew repository]' \
'(--version)--version[version information]' \ '(--version)--version[version information]' \

View File

@ -37,7 +37,7 @@ def load_logs name
end end
def append_config files def append_config files
files['config.out'] = {:content => `brew --config 2>&1`} files['config.out'] = {:content => `brew config 2>&1`}
end end
def append_doctor files def append_doctor files

View File

@ -276,7 +276,7 @@ class Test
return if ARGV.include? "--skip-setup" return if ARGV.include? "--skip-setup"
test "brew doctor" test "brew doctor"
test "brew --env" test "brew --env"
test "brew --config" test "brew config"
end end
def formula formula def formula formula

View File

@ -67,6 +67,11 @@ Note that these flags should only appear after a command.
* `commands`: * `commands`:
Show a list of built-in and external commands. Show a list of built-in and external commands.
* `config`:
Show Homebrew and system configuration useful for debugging. If you file
a bug report, you will likely be asked for this information if you do not
provide it.
* `create <URL> [--autotools|--cmake] [--no-fetch] [--set-name <name>] [--set-version <version>]`: * `create <URL> [--autotools|--cmake] [--no-fetch] [--set-name <name>] [--set-version <version>]`:
Generate a formula for the downloadable file at <URL> and open it in the editor. Generate a formula for the downloadable file at <URL> and open it in the editor.
Homebrew will attempt to automatically derive the formula name Homebrew will attempt to automatically derive the formula name
@ -391,11 +396,6 @@ Note that these flags should only appear after a command.
Display the location in the cellar where <formula> would be installed, Display the location in the cellar where <formula> would be installed,
without any sort of versioned directory as the last path. without any sort of versioned directory as the last path.
* `--config`:
Show Homebrew and system configuration useful for debugging. If you file
a bug report, you will likely be asked for this information if you do not
provide it.
* `--env`: * `--env`:
Show a summary of the Homebrew build environment. Show a summary of the Homebrew build environment.

View File

@ -1,7 +1,7 @@
require 'hardware' require 'hardware'
module Homebrew extend self module Homebrew extend self
def __config def config
dump_verbose_config dump_verbose_config
end end

View File

@ -12,7 +12,7 @@ Example usage:
Troubleshooting: Troubleshooting:
brew doctor brew doctor
brew install -vd FORMULA brew install -vd FORMULA
brew [--env | --config] brew [--env | config]
Brewing: Brewing:
brew create [URL [--no-fetch]] brew create [URL [--no-fetch]]

View File

@ -190,7 +190,7 @@ class BuildError < Homebrew::InstallationError
puts " #{tap_issues_url}" puts " #{tap_issues_url}"
end end
else else
require 'cmd/--config' require 'cmd/config'
require 'cmd/--env' require 'cmd/--env'
unless formula.core_formula? unless formula.core_formula?

View File

@ -570,7 +570,7 @@ class Formula
f.flush f.flush
Kernel.system "/usr/bin/tail", "-n", "5", logfn unless ARGV.verbose? Kernel.system "/usr/bin/tail", "-n", "5", logfn unless ARGV.verbose?
f.puts f.puts
require 'cmd/--config' require 'cmd/config'
Homebrew.write_build_config(f) Homebrew.write_build_config(f)
raise BuildError.new(self, cmd, args, $?) raise BuildError.new(self, cmd, args, $?)
end end

View File

@ -58,7 +58,7 @@ module MacCPUs
:g4e # PowerPC 7450 :g4e # PowerPC 7450
when 100 when 100
# This is the only 64-bit PPC CPU type, so it's useful # This is the only 64-bit PPC CPU type, so it's useful
# to distinguish in `brew --config` output and in bottle tags # to distinguish in `brew config` output and in bottle tags
MacOS.prefer_64_bit? ? :g5_64 : :g5 # PowerPC 970 MacOS.prefer_64_bit? ? :g5_64 : :g5 # PowerPC 970
else else
:dunno :dunno

View File

@ -85,7 +85,7 @@ begin
'dr' => 'doctor', 'dr' => 'doctor',
'--repo' => '--repository', '--repo' => '--repository',
'environment' => '--env', 'environment' => '--env',
'-c1' => '--config', '--config' => 'config',
} }
cmd = ARGV.shift cmd = ARGV.shift

View File

@ -75,6 +75,10 @@ If \fB\-s\fR is passed, scrubs the cache, removing downloads for even the latest
Show a list of built\-in and external commands\. Show a list of built\-in and external commands\.
. .
.TP .TP
\fBconfig\fR
Show Homebrew and system configuration useful for debugging\. If you file a bug report, you will likely be asked for this information if you do not provide it\.
.
.TP
\fBcreate <URL> [\-\-autotools|\-\-cmake] [\-\-no\-fetch] [\-\-set\-name <name>] [\-\-set\-version <version>]\fR \fBcreate <URL> [\-\-autotools|\-\-cmake] [\-\-no\-fetch] [\-\-set\-name <name>] [\-\-set\-version <version>]\fR
Generate a formula for the downloadable file at \fIURL\fR and open it in the editor\. Homebrew will attempt to automatically derive the formula name and version, but if it fails, you\'ll have to make your own template\. The wget formula serves as a simple example\. For a complete cheat\-sheet, have a look at Generate a formula for the downloadable file at \fIURL\fR and open it in the editor\. Homebrew will attempt to automatically derive the formula name and version, but if it fails, you\'ll have to make your own template\. The wget formula serves as a simple example\. For a complete cheat\-sheet, have a look at
. .
@ -417,10 +421,6 @@ Display Homebrew\'s Cellar path\. \fIDefault:\fR \fB/usr/local/Cellar\fR
Display the location in the cellar where \fIformula\fR would be installed, without any sort of versioned directory as the last path\. Display the location in the cellar where \fIformula\fR would be installed, without any sort of versioned directory as the last path\.
. .
.TP .TP
\fB\-\-config\fR
Show Homebrew and system configuration useful for debugging\. If you file a bug report, you will likely be asked for this information if you do not provide it\.
.
.TP
\fB\-\-env\fR \fB\-\-env\fR
Show a summary of the Homebrew build environment\. Show a summary of the Homebrew build environment\.
. .