Build tarballs etc. when packaging for a release.

This commit is contained in:
Nathan Weizenbaum 2008-05-06 01:00:52 -07:00
parent 1a9c5e2d36
commit 39da4e404e
1 changed files with 7 additions and 1 deletions

View File

@ -45,7 +45,13 @@ require 'rake/gempackagetask'
require 'lib/haml'
load 'haml.gemspec'
Rake::GemPackageTask.new(HAML_GEMSPEC).define
Rake::GemPackageTask.new(HAML_GEMSPEC) do |pkg|
if Rake.application.top_level_tasks.include?('release')
pkg.need_tar_gz = true
pkg.need_tar_bz2 = true
pkg.need_zip = true
end
end
desc "This is an internal task."
task :revision_file do