From 5d0f868f060c086cc53c81ef6a63ac93e24ae1b4 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 21 Sep 2013 21:24:50 +0100 Subject: Move bottle.rb logic from test-bot to brew bottle. --- Library/Homebrew/cmd/bottle.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index 9c7157d8e..c6d074750 100644 --- a/Library/Homebrew/cmd/bottle.rb +++ b/Library/Homebrew/cmd/bottle.rb @@ -114,6 +114,13 @@ module Homebrew extend self output = bottle_output bottle puts output end + + if ARGV.include? '--rb' + bottle_base = filename.gsub(bottle_suffix(bottle_revision), '') + File.open "#{bottle_base}.bottle.rb", 'w' do |file| + file.write output + end + end end def merge -- cgit v1.2.3