aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlexis Hildebrandt2013-10-11 10:53:50 +0200
committerAdam Vandenberg2013-11-15 07:50:23 -0800
commit7f86794ce1576a8b70ca186c8763d8d59eb3747e (patch)
treec16d783e1238ba474bef911088bfdb2c3660b9b3 /Library
parent931f879f5a1fb1512836274a65d3e57dc5e229c1 (diff)
downloadhomebrew-7f86794ce1576a8b70ca186c8763d8d59eb3747e.tar.bz2
Add HOMEBREW_INSTALL_BADGE environment variable
with which the beer emoji displayed upon successful build can be changed. Closes #23194. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Contributions/manpages/brew.1.md7
-rw-r--r--Library/Homebrew/formula_installer.rb2
2 files changed, 7 insertions, 2 deletions
diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md
index 14571be48..6ba333e06 100644
--- a/Library/Contributions/manpages/brew.1.md
+++ b/Library/Contributions/manpages/brew.1.md
@@ -518,7 +518,8 @@ can take several different forms:
*Default:* the number of available CPU cores.
* 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.
@@ -526,6 +527,10 @@ can take several different forms:
If set, Homebrew will not use the GitHub API for e.g searches or
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:
If set, Homebrew will use the value of `HOMEBREW_SOURCEFORGE_MIRROR` to
select a SourceForge mirror for downloading bottles.
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 156e1737f..c0348fe51 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -314,7 +314,7 @@ class FormulaInstaller
ohai "Summary" if ARGV.verbose? or show_summary_heading
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
print "#{f.prefix}: #{f.prefix.abv}"
print ", built in #{pretty_duration build_time}" if build_time