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:
Set this to force Homebrew to use a particular git binary.
HOMEBREW_BOTTLE_DOMAINIf set, instructs Homebrew to use the given URL as a download mirror for bottles.
HOMEBREW_ARTIFACT_DOMAINIf set, instructs Homebrew to use the given URL as a download mirror for bottles and binaries.
HOMEBREW_AUTO_UPDATE_SECSIf set, Homebrew will only check for autoupdates once per this seconds interval.
+ +Default: 60.
HOMEBREW_BROWSERIf set, uses this setting as the browser when opening project homepages, instead of the OS default browser.
HOMEBREW_BUILD_FROM_SOURCEIf 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_ANALYTICSIf set, Homebrew will not send analytics. See: https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md#analytics
HOMEBREW_NO_AUTO_UPDATEIf set, Homebrew will not auto-update before running brew install and
+brew upgrade.
HOMEBREW_NO_EMOJIIf set, Homebrew will not print the HOMEBREW_INSTALL_BADGE on a
successful build.