X-Git-Url: http://git.code-monkey.de/?p=redact.git;a=blobdiff_plain;f=Rakefile;h=4a17865ab8e4e7e1d0579ffbeda8052a0afc6032;hp=42630f150cdec64f5d1feea201c61d594d315594;hb=65d027a0b57b6d97cc73e55ea703e17aae623da3;hpb=1ab6f66fbfc86b7ae8607a6046d1636bd5383b4c diff --git a/Rakefile b/Rakefile index 42630f1..4a17865 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,3 @@ -# $Id: Rakefile 42 2005-06-08 17:16:09Z tilman $ - require "rake/clean" require "rake/testtask" require "rake/rdoctask" @@ -15,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") @@ -45,21 +51,26 @@ 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 p = Rake::CompositePublisher.new p.add(Rake::SshFreshDirPublisher.new("code-monkey.de", - "public_html/docs/" + + "public_docs/" + PKG_NAME, "doc")) p.add(Rake::SshFilePublisher.new("code-monkey.de", ".", "pkg",