Sha256: 2971dfedbc481ab3f89be0d15d5810ab1239aa3a5f48384e02f4ef05195f11d9
Contents?: true
Size: 401 Bytes
Versions: 1
Compression:
Stored size: 401 Bytes
Contents
#!/usr/local/bin/ruby require 'rio' require 'rio/argv' # Create a zip archive from a gzipped tar archive. # This depends on the GNU programs 'tar' and 'zip' being available in your PATH TAR='tar' ZIP='zip' RIO.ARGV.each { |f| f.ext('.tar.gz') if f =~ /\.tar\.gz$/ rio(??).chdir { rio(?-,"#{TAR} xvzkf #{f.abs}") | "#{ZIP} -@ #{f.abs.dirname/f.basename+'.zip'}" | ?- } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rio-0.3.7 | ex/targz2zip |