From 8ec2d4594e2a49f04c7f6b64144f360da0ac57fd Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 8 Oct 2013 10:12:44 +0100 Subject: BuildOptions: detect if building a bottle. --- Library/Homebrew/build_options.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3