X-Git-Url: http://git.code-monkey.de/?p=redact.git;a=blobdiff_plain;f=Rakefile;h=14901ca220a0551062c47393a2a9497e864119bc;hp=ee9f8978bfae3cf3d70684d25558d043829f8a3b;hb=HEAD;hpb=3d543dcaedbbf55f1471704adde7b418fb9a31c8 diff --git a/Rakefile b/Rakefile index ee9f897..14901ca 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,3 @@ -# $Id: Rakefile 76 2006-05-13 11:58:15Z tilman $ - require "rake/clean" require "rake/testtask" require "rake/rdoctask" @@ -7,14 +5,17 @@ require "rake/packagetask" require "rake/contrib/compositepublisher.rb" require "rake/contrib/sshpublisher" -# make sure we run at least Rake 0.5.0 -if (RAKEVERSION.split(".").map { |p| p.to_i } <=> [0, 5, 0]) < 0 - raise("Rake 0.5.0 or greater required") -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") @@ -45,15 +46,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