Change tabs to spaces in brew bottle.
This commit is contained in:
parent
5e724cbf15
commit
bc724bd31e
@ -3,19 +3,19 @@ brew_install
|
|||||||
|
|
||||||
destination = HOMEBREW_PREFIX + "Bottles"
|
destination = HOMEBREW_PREFIX + "Bottles"
|
||||||
if not File.directory?(destination)
|
if not File.directory?(destination)
|
||||||
Dir.mkdir destination
|
Dir.mkdir destination
|
||||||
end
|
end
|
||||||
|
|
||||||
ARGV.each do|formula|
|
ARGV.each do|formula|
|
||||||
# Get the latest version
|
# Get the latest version
|
||||||
version = `brew list --versions #{formula}`.split.last
|
version = `brew list --versions #{formula}`.split.last
|
||||||
source = HOMEBREW_CELLAR + formula + version
|
source = HOMEBREW_CELLAR + formula + version
|
||||||
filename = formula + '-' + version + '.tar.gz'
|
filename = formula + '-' + version + '.tar.gz'
|
||||||
ohai "Bottling #{formula} #{version}..."
|
ohai "Bottling #{formula} #{version}..."
|
||||||
HOMEBREW_CELLAR.cd do
|
HOMEBREW_CELLAR.cd do
|
||||||
# Use gzip, much faster than bzip2 and hardly any file size difference
|
# Use gzip, much faster than bzip2 and hardly any file size difference
|
||||||
# when compressing binaries.
|
# when compressing binaries.
|
||||||
safe_system "tar czf #{destination}/#{filename} #{formula}/#{version}"
|
safe_system "tar czf #{destination}/#{filename} #{formula}/#{version}"
|
||||||
end
|
end
|
||||||
ohai "Bottled #{filename}"
|
ohai "Bottled #{filename}"
|
||||||
end
|
end
|
Loading…
x
Reference in New Issue
Block a user