aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2013-09-21 21:24:50 +0100
committerMike McQuaid2013-09-22 16:16:50 +0100
commit76ef4e1d507eacd8744131139a0b025d65a1949a (patch)
tree8edc07c3ca8d771dcf7e707d24a42feb155a4047 /Library/Homebrew/cmd
parent12989ee42ff09dfd404951e124bb01b13dfe1e93 (diff)
downloadhomebrew-76ef4e1d507eacd8744131139a0b025d65a1949a.tar.bz2
Move bottle.rb logic from test-bot to brew bottle.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/bottle.rb7
1 files changed, 7 insertions, 0 deletions
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