diff options
| author | Mike McQuaid | 2012-03-07 17:29:05 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2012-03-10 17:57:10 +1300 |
| commit | 22f908d5206bbc4184ec7686593f1f04b9c9ff2f (patch) | |
| tree | c795fa3ed7f4d206e7413dbb8d257c65441f10fd /Library/Contributions/examples | |
| parent | aef580261b2452eda2ebad666f27692e94cbf7ef (diff) | |
| download | brew-22f908d5206bbc4184ec7686593f1f04b9c9ff2f.tar.bz2 | |
Make `brew-bottle` an internal command.
Diffstat (limited to 'Library/Contributions/examples')
| -rwxr-xr-x | Library/Contributions/examples/brew-bottle.rb | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/Library/Contributions/examples/brew-bottle.rb b/Library/Contributions/examples/brew-bottle.rb deleted file mode 100755 index 63032bc4e..000000000 --- a/Library/Contributions/examples/brew-bottle.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Builds binary brew package -require 'tab' - -ARGV.each do|formula| - # Get the latest version - version = `brew list --versions #{formula}`.split.last - - if version.nil? - onoe "Formula not installed: #{formula}" - next - end - - source = HOMEBREW_CELLAR + formula + version - filename = "#{formula}-#{version}-bottle.tar.gz" - destination = Pathname.pwd - - tab = Tab.for_keg source - if not tab.built_bottle - onoe "Formula not installed with '--build-bottle': #{formula}" - next - end - - HOMEBREW_CELLAR.cd do - ohai "Bottling #{formula} #{version}..." - # Use gzip, faster to compress than bzip2, faster to uncompress than bzip2 - # or an uncompressed tarball (and more bandwidth friendly). - safe_system 'tar', 'czf', destination/filename, "#{formula}/#{version}" - puts "./#{filename}" - puts "bottle do" - puts " url 'https://downloads.sf.net/project/machomebrew/Bottles/#{filename}'" - puts " sha1 '#{(destination/filename).sha1}'" - puts "end" - end -end |
