From bc724bd31ee477a8fd30740ce8debb45efb961a6 Mon Sep 17 00:00:00 2001 From: Mike McQuaid <mike@mikemcquaid.com> Date: Wed, 1 Dec 2010 23:01:54 +0000 Subject: [PATCH] Change tabs to spaces in brew bottle. --- Library/Contributions/examples/brew-bottle.rb | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Library/Contributions/examples/brew-bottle.rb b/Library/Contributions/examples/brew-bottle.rb index 5293e811f7..4e32051943 100755 --- a/Library/Contributions/examples/brew-bottle.rb +++ b/Library/Contributions/examples/brew-bottle.rb @@ -3,19 +3,19 @@ brew_install destination = HOMEBREW_PREFIX + "Bottles" if not File.directory?(destination) - Dir.mkdir destination + Dir.mkdir destination end ARGV.each do|formula| - # Get the latest version - version = `brew list --versions #{formula}`.split.last + # Get the latest version + version = `brew list --versions #{formula}`.split.last source = HOMEBREW_CELLAR + formula + version - filename = formula + '-' + version + '.tar.gz' - ohai "Bottling #{formula} #{version}..." - HOMEBREW_CELLAR.cd do - # Use gzip, much faster than bzip2 and hardly any file size difference - # when compressing binaries. - safe_system "tar czf #{destination}/#{filename} #{formula}/#{version}" - end - ohai "Bottled #{filename}" + filename = formula + '-' + version + '.tar.gz' + ohai "Bottling #{formula} #{version}..." + HOMEBREW_CELLAR.cd do + # Use gzip, much faster than bzip2 and hardly any file size difference + # when compressing binaries. + safe_system "tar czf #{destination}/#{filename} #{formula}/#{version}" + end + ohai "Bottled #{filename}" end \ No newline at end of file -- GitLab