[Rubygems-developers] Handling of tar files....

Austin Ziegler halostatue at gmail.com
Wed Jul 27 08:30:18 EDT 2005


On 7/27/05, Hugh Sasse <hgs at dmu.ac.uk> wrote:
> AFAICS rubygems assumes that tar is gnu tar.
>        [
>          [need_tar, tgz_file, "z"],
>          [need_tar_gz, tar_gz_file, "z"],
>          [need_tar_bz2, tar_bz2_file, "j"]
>        ].each do |(need, file, flag)|
>          if need
>            task :package => ["#{package_dir}/#{file}"]
>            file "#{package_dir}/#{file}" => [package_dir_path] + package_files do
>              chdir(package_dir) do
>                sh %{tar #{flag}cvf #{file} #{package_name}}
>              end
>            end
>          end
>        end
> 
> from ./lib/rake/packagetask.rb  in 0.5.4

This should be using Archive::Tar::Minitar or something similar in any case.

-austin
-- 
Austin Ziegler * halostatue at gmail.com
               * Alternate: austin at halostatue.ca



More information about the Rubygems-developers mailing list