Ship Homebrew auto-update support.
Roll this out to everyone (not just developers) and document the environment variables used for configuration.
This commit is contained in:
parent
0c6e307eef
commit
b6f467b007
@ -227,7 +227,6 @@ setup-analytics
|
||||
report-analytics-screenview-command
|
||||
|
||||
update-preinstall() {
|
||||
[[ -n "$HOMEBREW_DEVELOPER" ]] || return
|
||||
[[ -z "$HOMEBREW_NO_AUTO_UPDATE" ]] || return
|
||||
[[ -z "$HOMEBREW_UPDATE_PREINSTALL" ]] || return
|
||||
|
||||
|
||||
@ -108,6 +108,11 @@ can take several different forms:
|
||||
* `HOMEBREW_ARTIFACT_DOMAIN`:
|
||||
If set, instructs Homebrew to use the given URL as a download mirror for bottles and binaries.
|
||||
|
||||
* `HOMEBREW_AUTO_UPDATE_SECS`:
|
||||
If set, Homebrew will only check for autoupdates once per this seconds interval.
|
||||
|
||||
*Default:* `60`.
|
||||
|
||||
* `HOMEBREW_BROWSER`:
|
||||
If set, uses this setting as the browser when opening project homepages,
|
||||
instead of the OS default browser.
|
||||
@ -172,6 +177,10 @@ can take several different forms:
|
||||
* `HOMEBREW_NO_ANALYTICS`:
|
||||
If set, Homebrew will not send analytics. See: <https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md#analytics>
|
||||
|
||||
* `HOMEBREW_NO_AUTO_UPDATE`:
|
||||
If set, Homebrew will not auto-update before running `brew install` and
|
||||
`brew upgrade`.
|
||||
|
||||
* `HOMEBREW_NO_EMOJI`:
|
||||
If set, Homebrew will not print the `HOMEBREW_INSTALL_BADGE` on a
|
||||
successful build.
|
||||
|
||||
@ -529,6 +529,9 @@ a Homebrew-built Git if installed, or the system-provided binary.</p>
|
||||
<p>Set this to force Homebrew to use a particular git binary.</p></dd>
|
||||
<dt><code>HOMEBREW_BOTTLE_DOMAIN</code></dt><dd><p>If set, instructs Homebrew to use the given URL as a download mirror for bottles.</p></dd>
|
||||
<dt><code>HOMEBREW_ARTIFACT_DOMAIN</code></dt><dd><p>If set, instructs Homebrew to use the given URL as a download mirror for bottles and binaries.</p></dd>
|
||||
<dt><code>HOMEBREW_AUTO_UPDATE_SECS</code></dt><dd><p>If set, Homebrew will only check for autoupdates once per this seconds interval.</p>
|
||||
|
||||
<p><em>Default:</em> <code>60</code>.</p></dd>
|
||||
<dt><code>HOMEBREW_BROWSER</code></dt><dd><p>If set, uses this setting as the browser when opening project homepages,
|
||||
instead of the OS default browser.</p></dd>
|
||||
<dt><code>HOMEBREW_BUILD_FROM_SOURCE</code></dt><dd><p>If set, instructs Homebrew to compile from source even when a formula
|
||||
@ -567,6 +570,8 @@ the number of parallel jobs to run when building with <code>make</code>(1).</p>
|
||||
|
||||
<p><em>Default:</em> the number of available CPU cores.</p></dd>
|
||||
<dt><code>HOMEBREW_NO_ANALYTICS</code></dt><dd><p>If set, Homebrew will not send analytics. See: <a href="https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md#analytics" data-bare-link="true">https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md#analytics</a></p></dd>
|
||||
<dt><code>HOMEBREW_NO_AUTO_UPDATE</code></dt><dd><p>If set, Homebrew will not auto-update before running <code>brew install</code> and
|
||||
<code>brew upgrade</code>.</p></dd>
|
||||
<dt><code>HOMEBREW_NO_EMOJI</code></dt><dd><p>If set, Homebrew will not print the <code>HOMEBREW_INSTALL_BADGE</code> on a
|
||||
successful build.</p>
|
||||
|
||||
|
||||
@ -722,6 +722,13 @@ If set, instructs Homebrew to use the given URL as a download mirror for bottles
|
||||
If set, instructs Homebrew to use the given URL as a download mirror for bottles and binaries\.
|
||||
.
|
||||
.TP
|
||||
\fBHOMEBREW_AUTO_UPDATE_SECS\fR
|
||||
If set, Homebrew will only check for autoupdates once per this seconds interval\.
|
||||
.
|
||||
.IP
|
||||
\fIDefault:\fR \fB60\fR\.
|
||||
.
|
||||
.TP
|
||||
\fBHOMEBREW_BROWSER\fR
|
||||
If set, uses this setting as the browser when opening project homepages, instead of the OS default browser\.
|
||||
.
|
||||
@ -786,6 +793,10 @@ If set, instructs Homebrew to use the value of \fBHOMEBREW_MAKE_JOBS\fR as the n
|
||||
If set, Homebrew will not send analytics\. See: \fIhttps://github\.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics\.md#analytics\fR
|
||||
.
|
||||
.TP
|
||||
\fBHOMEBREW_NO_AUTO_UPDATE\fR
|
||||
If set, Homebrew will not auto\-update before running \fBbrew install\fR and \fBbrew upgrade\fR\.
|
||||
.
|
||||
.TP
|
||||
\fBHOMEBREW_NO_EMOJI\fR
|
||||
If set, Homebrew will not print the \fBHOMEBREW_INSTALL_BADGE\fR on a successful build\.
|
||||
.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user