aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/examples
diff options
context:
space:
mode:
authorMike McQuaid2012-03-07 17:29:05 -0500
committerMike McQuaid2012-03-10 17:57:10 +1300
commit22f908d5206bbc4184ec7686593f1f04b9c9ff2f (patch)
treec795fa3ed7f4d206e7413dbb8d257c65441f10fd /Library/Contributions/examples
parentaef580261b2452eda2ebad666f27692e94cbf7ef (diff)
downloadbrew-22f908d5206bbc4184ec7686593f1f04b9c9ff2f.tar.bz2
Make `brew-bottle` an internal command.
Diffstat (limited to 'Library/Contributions/examples')
-rwxr-xr-xLibrary/Contributions/examples/brew-bottle.rb34
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