aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-15 11:32:45 -0700
committerAdam Vandenberg2010-08-15 11:32:45 -0700
commit42129a7a94808c432100d724e4b07139f47b1e6e (patch)
treeb8d26e75812ea63931e937791de2e739c7b38637 /Library
parent43a1622609db51e0f92622859291be70c6e8e123 (diff)
downloadbrew-42129a7a94808c432100d724e4b07139f47b1e6e.tar.bz2
brew audit - another man variation
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Contributions/examples/brew-audit.rb
index 916f93d8f..c71daa8fa 100755
--- a/Library/Contributions/examples/brew-audit.rb
+++ b/Library/Contributions/examples/brew-audit.rb
@@ -34,6 +34,10 @@ def audit_formula_text text
problems << " * \"(#{$1}...#{$2})\" should be \"(#{$3}+...)\""
end
+ if text =~ %r[((man)\s*\+\s*(['"])(man[1-8])(['"]))]
+ problems << " * \"#{$1}\" should be \"#{$4}\""
+ end
+
# Prefer formula path shortcuts in strings
if text =~ %r[(\#\{prefix\}/(bin|include|lib|libexec|sbin|share))]
problems << " * \"#{$1}\" should be \"\#{#{$2}}\""