From b6f467b007c86b2a0f41e97bc38eb55e01622bd1 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 10 Aug 2016 15:46:31 +0100 Subject: Ship Homebrew auto-update support. Roll this out to everyone (not just developers) and document the environment variables used for configuration. --- Library/Homebrew/brew.sh | 1 - Library/Homebrew/manpages/brew.1.md.erb | 9 +++++++++ share/doc/homebrew/brew.1.html | 5 +++++ share/man/man1/brew.1 | 11 +++++++++++ 4 files changed, 25 insertions(+), 1 deletion(-) 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: + * `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.

Set this to force Homebrew to use a particular git binary.

HOMEBREW_BOTTLE_DOMAIN

If set, instructs Homebrew to use the given URL as a download mirror for bottles.

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.

HOMEBREW_BUILD_FROM_SOURCE

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 make(1).

Default: the number of available CPU cores.

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/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\. . -- cgit v1.2.3