X-Git-Url: http://git.code-monkey.de/?p=redact.git;a=blobdiff_plain;f=Rakefile;h=4a17865ab8e4e7e1d0579ffbeda8052a0afc6032;hp=3a3f52dc5a20a8d4b449fdfbac602d3b60f416c2;hb=65d027a0b57b6d97cc73e55ea703e17aae623da3;hpb=5509b434e26fd1a8c9c3990154a881583b81d2a6 diff --git a/Rakefile b/Rakefile index 3a3f52d..4a17865 100644 --- a/Rakefile +++ b/Rakefile @@ -13,6 +13,14 @@ end PKG_NAME = "redact" PKG_VERSION = File.read("lib/redact/redact.rb"). match(/^\s*VERSION = \"(.*)\"\s*$/).captures.first +PKG_FILES = FileList[ + "AUTHORS", "COPYING", "ChangeLog", "NEWS", "README", "Rakefile", + "TODO", + "bin/redact", "lib/redact/app.rb", "lib/redact/part.rb", + "lib/redact/program.rb", "lib/redact/redact.rb", + "lib/redact/source.rb", + "test/crossfade.rb", "test/red_rect.rb", "test/test_basic.rb" +] CLOBBER.include("test/*.edj") @@ -43,15 +51,20 @@ Rake::RDocTask.new do |t| t.rdoc_dir = "doc" t.title = "Redact - An Edje Compiler written in Ruby" t.options = ["--line-numbers", "--inline-source", "--main", "README"] - t.rdoc_files.include("README", "COPYING", "AUTHORS", "ChangeLog", + t.rdoc_files.include("README", "COPYING", "AUTHORS", "TODO", "NEWS", "lib/redact/redact.rb", "lib/redact/part.rb", "lib/redact/program.rb") end +CLOBBER.include("ChangeLog") + +file "ChangeLog" do + `git log > ChangeLog` +end + Rake::PackageTask.new(PKG_NAME, PKG_VERSION) do |t| t.need_tar_gz = true - t.package_files.include("[A-Z]*", "bin/redact", "lib/redact/*.rb", - "test/*.rb") + t.package_files = PKG_FILES end task :publish => [:rdoc, :package] do