aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-10-08 10:12:44 +0100
committerMike McQuaid2013-10-08 10:13:03 +0100
commit8ec2d4594e2a49f04c7f6b64144f360da0ac57fd (patch)
tree2ce256eec29bb74d5de834d219d7395bee2eef2c /Library
parentfe31e8ddb4803c3e549af936b7f7b30b754660db (diff)
downloadbrew-8ec2d4594e2a49f04c7f6b64144f360da0ac57fd.tar.bz2
BuildOptions: detect if building a bottle.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/build_options.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/build_options.rb b/Library/Homebrew/build_options.rb
index 3bd78c864..ff2e099fc 100644
--- a/Library/Homebrew/build_options.rb
+++ b/Library/Homebrew/build_options.rb
@@ -73,6 +73,10 @@ class BuildOptions
not with? name
end
+ def bottle?
+ args.include? '--build-bottle'
+ end
+
def head?
args.include? '--HEAD'
end