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
commitaa76e070115707d467755711ab2e1b1a5cf43377 (patch)
treeef1cade8348e4a0cef21fc72978e53d905139ae7 /Library
parent1400e08094f0877ad4d079dbc7bfe88acd58bdcc (diff)
downloadhomebrew-aa76e070115707d467755711ab2e1b1a5cf43377.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