Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Build a lzma compressed tarball.

  • Loading branch information...
commit ac35220f2cdf596b3a3d4dcd6ce4e6d44dac3135 1 parent 5237db7
rmagick authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 build_tarball.rake
View
7 build_tarball.rake
@@ -187,6 +187,12 @@ GEM = Dist_Directory.downcase + ".gem"
task :default => [:export, :collateral, :fix_files, :manifest] do
sh "tar cvfz #{Release}.tar.gz #{Dist_Directory}"
sh "tar cvfj #{Release}.tar.bz2 #{Dist_Directory}"
+ sh "tar cvf #{Release}.tar #{Dist_Directory}"
+
+ # Extract with
+ # 7z e RMagick-x.y.z.tar.lzma -so | tar xv
+ sh "7z add -t7z -m0=lzma -mx=9 -mfb=64 -ms=32m -ms=on #{Release}.tar.lzma #{Release}.tar"
+ rm_rf Release+".tar", :verbose => true
Dir.chdir(Dist_Directory) do
sh "gem build rmagick.gemspec"
mv GEM, "../", :verbose => true
@@ -200,6 +206,7 @@ task :clean do
rm_rf Dist_Directory, :verbose => true
rm_rf Release+".tar.gz", :verbose => true
rm_rf Release+".tar.bz2", :verbose => true
+ rm_rf Release+".tar.lzma", :verbose => true
rm_rf GEM, :verbose => true
end
Please sign in to comment.
Something went wrong with that request. Please try again.