aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-09-04 18:18:14 -0500
committerJack Nagel2012-09-04 18:18:14 -0500
commit35a99c240ae25513928b181f5d9a080fe36bf9af (patch)
treeac9c1456ff43da5dfdda8eed0a6d13c3c5ec10c9 /Library
parent186a76c741a92c25d58b85d597bbb9fb5774c668 (diff)
downloadbrew-35a99c240ae25513928b181f5d9a080fe36bf9af.tar.bz2
Audit check for MACOS_VERSION
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 6812dd118..b61d58817 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -385,6 +385,10 @@ class FormulaAuditor
if text =~ /def options/
problem "Use new-style option definitions."
end
+
+ if text =~ /MACOS_VERSION/
+ problem "Use MacOS.version instead of MACOS_VERSION"
+ end
end
def audit