* tool/extlibs.rb (do_extract): decompress!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
694185bf7f
commit
b1186bf39f
@ -41,13 +41,13 @@ def do_extract(cache, dir)
|
|||||||
ext = File.extname(cache)
|
ext = File.extname(cache)
|
||||||
case ext
|
case ext
|
||||||
when '.gz', '.tgz'
|
when '.gz', '.tgz'
|
||||||
f = IO.popen(["gzip", "-c", cache])
|
f = IO.popen(["gzip", "-dc", cache])
|
||||||
cache = cache.chomp('.gz')
|
cache = cache.chomp('.gz')
|
||||||
when '.bz2', '.tbz'
|
when '.bz2', '.tbz'
|
||||||
f = IO.popen(["bzip2", "-c", cache])
|
f = IO.popen(["bzip2", "-dc", cache])
|
||||||
cache = cache.chomp('.bz2')
|
cache = cache.chomp('.bz2')
|
||||||
when '.xz', '.txz'
|
when '.xz', '.txz'
|
||||||
f = IO.popen(["xz", "-c", cache])
|
f = IO.popen(["xz", "-dc", cache])
|
||||||
cache = cache.chomp('.xz')
|
cache = cache.chomp('.xz')
|
||||||
else
|
else
|
||||||
inp = cache
|
inp = cache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user