aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2016-08-10 15:46:31 +0100
committerMike McQuaid2016-08-10 15:46:31 +0100
commitb6f467b007c86b2a0f41e97bc38eb55e01622bd1 (patch)
tree8698875be24d174cbe601e0604c9b8740bfbaeff
parent0c6e307eef57c48d03e1213112d3edd597ce5a7b (diff)
downloadbrew-b6f467b007c86b2a0f41e97bc38eb55e01622bd1.tar.bz2
Ship Homebrew auto-update support.
Roll this out to everyone (not just developers) and document the environment variables used for configuration.
-rw-r--r--Library/Homebrew/brew.sh1
-rw-r--r--Library/Homebrew/manpages/brew.1.md.erb9
-rw-r--r--share/doc/homebrew/brew.1.html5
-rw-r--r--share/man/man1/brew.111
4 files changed, 25 insertions, 1 deletions
diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh
index edbc8db05..bf8985ffa 100644
--- a/Library/Homebrew/brew.sh
+++ b/Library/Homebrew/brew.sh
@@ -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
diff --git a/Library/Homebrew/manpages/brew.1.md.erb b/Library/Homebrew/manpages/brew.1.md.erb
index affac9295..65344f8d0 100644
--- a/Library/Homebrew/manpages/brew.1.md.erb
+++ b/Library/Homebrew/manpages/brew.1.md.erb
@@ -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.
diff --git a/share/doc/homebrew/brew.1.html b/share/doc/homebrew/brew.1.html
index b9b6bf3c0..a93eeb2a3 100644
--- a/share/doc/homebrew/brew.1.html
+++ b/share/doc/homebrew/brew.1.html
@@ -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>
diff --git a/share/man/man1/brew.1 b/share/man/man1/brew.1
index f3c5f3899..e7eeb7793 100644
--- a/share/man/man1/brew.1
+++ b/share/man/man1/brew.1
@@ -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\.
.