aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2012-12-31 17:51:57 +0000
committerMike McQuaid2013-01-01 16:39:06 +0000
commit2491b33a062c15bfec1a7a23ae63e6b06aa4dd7d (patch)
tree59b538933d76614271d8fab1b937ba5c570b2bdb /Library
parent9773559aa7e50416197001e973fae9e4fe60928f (diff)
downloadhomebrew-2491b33a062c15bfec1a7a23ae63e6b06aa4dd7d.tar.bz2
Add --homebrew-developer flag
Diffstat (limited to 'Library')
-rw-r--r--Library/Contributions/manpages/brew.1.md4
-rw-r--r--Library/Homebrew/extend/ARGV.rb4
-rw-r--r--Library/Homebrew/formula_installer.rb12
3 files changed, 14 insertions, 6 deletions
diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md
index a4f989cdf..7cb10ac59 100644
--- a/Library/Contributions/manpages/brew.1.md
+++ b/Library/Contributions/manpages/brew.1.md
@@ -408,6 +408,10 @@ can take several different forms:
`HOMEBREW_DEBUG_PREFIX` will be set to the target prefix in the Cellar
of the formula being brewed.
+ * HOMEBREW\_DEVELOPER:
+ If set, Homebrew will print warnings that are only relevant to Homebrew
+ developers (active or budding).
+
* HOMEBREW\_EDITOR:
If set, Homebrew will use this editor when editing a single formula, or
several formulae in the same directory.
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index eb995bf28..b292f570b 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -97,6 +97,10 @@ module HomebrewArgvExtension
include?('--dry-run') || switch?('n')
end
+ def homebrew_developer?
+ include? '--homebrew-developer' or ENV['HOMEBREW_DEVELOPER']
+ end
+
def ignore_deps?
include? '--ignore-dependencies'
end
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 226910421..be862c103 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -151,12 +151,12 @@ class FormulaInstaller
if f.keg_only?
ohai 'Caveats', f.keg_only_text
@show_summary_heading = true
- else
- #audit_bin
- #audit_sbin
- #audit_lib
- #check_manpages
- #check_infopages
+ elsif ARGV.homebrew_developer?
+ audit_bin
+ audit_sbin
+ audit_lib
+ check_manpages
+ check_infopages
end
keg = Keg.new(f.prefix)