Add HOMEBREW_INSTALL_BADGE environment variable
with which the beer emoji displayed upon successful build can be changed. Closes Homebrew/homebrew#23194. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
8c6c4185b7
commit
76b69a8eb4
@ -518,7 +518,8 @@ can take several different forms:
|
|||||||
*Default:* the number of available CPU cores.
|
*Default:* the number of available CPU cores.
|
||||||
|
|
||||||
* HOMEBREW\_NO\_EMOJI:
|
* HOMEBREW\_NO\_EMOJI:
|
||||||
If set, Homebrew will not print the beer emoji on a successful build.
|
If set, Homebrew will not print the `HOMEBREW_INSTALL_BADGE` on a
|
||||||
|
successful build.
|
||||||
|
|
||||||
*Note:* Homebrew will only try to print emoji on Lion or newer.
|
*Note:* Homebrew will only try to print emoji on Lion or newer.
|
||||||
|
|
||||||
@ -526,6 +527,10 @@ can take several different forms:
|
|||||||
If set, Homebrew will not use the GitHub API for e.g searches or
|
If set, Homebrew will not use the GitHub API for e.g searches or
|
||||||
fetching relevant issues on a failed install.
|
fetching relevant issues on a failed install.
|
||||||
|
|
||||||
|
* HOMEBREW\_INSTALL\_BADGE:
|
||||||
|
Text printed before the installation summary of each successful build.
|
||||||
|
Defaults to the beer emoji.
|
||||||
|
|
||||||
* HOMEBREW\_SOURCEFORGE\_MIRROR:
|
* HOMEBREW\_SOURCEFORGE\_MIRROR:
|
||||||
If set, Homebrew will use the value of `HOMEBREW_SOURCEFORGE_MIRROR` to
|
If set, Homebrew will use the value of `HOMEBREW_SOURCEFORGE_MIRROR` to
|
||||||
select a SourceForge mirror for downloading bottles.
|
select a SourceForge mirror for downloading bottles.
|
||||||
|
|||||||
@ -314,7 +314,7 @@ class FormulaInstaller
|
|||||||
|
|
||||||
ohai "Summary" if ARGV.verbose? or show_summary_heading
|
ohai "Summary" if ARGV.verbose? or show_summary_heading
|
||||||
unless ENV['HOMEBREW_NO_EMOJI']
|
unless ENV['HOMEBREW_NO_EMOJI']
|
||||||
print "\xf0\x9f\x8d\xba " if MacOS.version >= :lion
|
print "#{ENV['HOMEBREW_INSTALL_BADGE'] || "\xf0\x9f\x8d\xba"} " if MacOS.version >= :lion
|
||||||
end
|
end
|
||||||
print "#{f.prefix}: #{f.prefix.abv}"
|
print "#{f.prefix}: #{f.prefix.abv}"
|
||||||
print ", built in #{pretty_duration build_time}" if build_time
|
print ", built in #{pretty_duration build_time}" if build_time
|
||||||
|
|||||||
@ -549,7 +549,7 @@ If set, instructs Homebrew to use the value of \fBHOMEBREW_MAKE_JOBS\fR as the n
|
|||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
HOMEBREW_NO_EMOJI
|
HOMEBREW_NO_EMOJI
|
||||||
If set, Homebrew will not print the beer emoji on a successful build\.
|
If set, Homebrew will not print the \fBHOMEBREW_INSTALL_BADGE\fR on a successful build\.
|
||||||
.
|
.
|
||||||
.IP
|
.IP
|
||||||
\fINote:\fR Homebrew will only try to print emoji on Lion or newer\.
|
\fINote:\fR Homebrew will only try to print emoji on Lion or newer\.
|
||||||
@ -559,6 +559,10 @@ HOMEBREW_NO_GITHUB_API
|
|||||||
If set, Homebrew will not use the GitHub API for e\.g searches or fetching relevant issues on a failed install\.
|
If set, Homebrew will not use the GitHub API for e\.g searches or fetching relevant issues on a failed install\.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
|
HOMEBREW_INSTALL_BADGE
|
||||||
|
Text printed before the installation summary of each successful build. Defaults to the beer emoji\.
|
||||||
|
.
|
||||||
|
.TP
|
||||||
HOMEBREW_SOURCEFORGE_MIRROR
|
HOMEBREW_SOURCEFORGE_MIRROR
|
||||||
If set, Homebrew will use the value of \fBHOMEBREW_SOURCEFORGE_MIRROR\fR to select a SourceForge mirror for downloading bottles\.
|
If set, Homebrew will use the value of \fBHOMEBREW_SOURCEFORGE_MIRROR\fR to select a SourceForge mirror for downloading bottles\.
|
||||||
.
|
.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user