diff options
| author | Mike McQuaid | 2010-12-01 23:01:54 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2010-12-01 23:01:54 +0000 |
| commit | bc724bd31ee477a8fd30740ce8debb45efb961a6 (patch) | |
| tree | a98f47cf05bd17958c5798cc2afecf61d87c13e8 /Library | |
| parent | 5e724cbf158023b9270f60f304ff34ed0f8e3cd3 (diff) | |
| download | brew-bc724bd31ee477a8fd30740ce8debb45efb961a6.tar.bz2 | |
Change tabs to spaces in brew bottle.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/examples/brew-bottle.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Library/Contributions/examples/brew-bottle.rb b/Library/Contributions/examples/brew-bottle.rb index 5293e811f..4e3205194 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 |
