diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md index a4f989cdfed0a00aabb9e16ad22c909ce57cda03..7cb10ac59ce1d2e26d29a4a37660cbde4cd77c10 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 eb995bf28e05144230f3e2de482d547dbe4f0785..b292f570bc432152e8379f987565c273feb2ca9b 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 2269104213446621414a9b2f2af3b48fabfa12c9..be862c10326c09e507b844d4d0a4b5e36f3ed589 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) diff --git a/share/man/man1/brew.1 b/share/man/man1/brew.1 index 5d87ef431d3df1dd54d9e7d869e64955cef3fee6..a01979d0d2e1a027071912d0f9aa984a9c65657e 100644 --- a/share/man/man1/brew.1 +++ b/share/man/man1/brew.1 @@ -1,7 +1,7 @@ .\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "BREW" "1" "November 2012" "Homebrew" "brew" +.TH "BREW" "1" "December 2012" "Homebrew" "brew" . .SH "NAME" \fBbrew\fR \- The missing package manager for OS X @@ -450,6 +450,10 @@ HOMEBREW_DEBUG_PREFIX When \fBbrew install \-d\fR or \fBbrew install \-i\fR drops into a shell, \fBHOMEBREW_DEBUG_PREFIX\fR will be set to the target prefix in the Cellar of the formula being brewed\. . .TP +HOMEBREW_DEVELOPER +If set, Homebrew will print warnings that are only relevant to Homebrew developers (active or budding)\. +. +.TP HOMEBREW_EDITOR If set, Homebrew will use this editor when editing a single formula, or several formulae in the same directory\. .