X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=Rakefile;h=c94f6cf0efc951e3ed144fe2da15d1e4e16c67f1;hb=7ffd114233c686568f43c88d79699c2921893ace;hp=195ffa8c4cffaa78cab99d8cc75c7627d1d98ba3;hpb=2dbd95c4c7848cebe22a492338922a0094388fdc;p=redact.git diff --git a/Rakefile b/Rakefile index 195ffa8..c94f6cf 100644 --- a/Rakefile +++ b/Rakefile @@ -1,4 +1,4 @@ -# $Id: Rakefile 13 2005-03-29 16:03:33Z tilman $ +# $Id: Rakefile 41 2005-05-29 10:39:46Z tilman $ require "rake/clean" require "rake/testtask" @@ -7,11 +7,16 @@ 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 -CLOBBER.include(FileList["test/*.edj"]) +CLOBBER.include("test/*.edj") sitelibdir = Config::CONFIG["sitelibdir"] destdir = "#{ENV["DESTDIR"]}" @@ -23,12 +28,9 @@ task :install do |t| ddir = destdir + sitelibdir + "/redact" - FileUtils::Verbose.mkdir(ddir) unless File.directory?(ddir) - - ["app", "part", "program", "redact"].each do |file| - FileUtils::Verbose.install("lib/redact/#{file}.rb", ddir, - :mode => 0644) - end + FileUtils::Verbose.mkdir_p(ddir) unless File.directory?(ddir) + FileUtils::Verbose.install(Dir["lib/redact/*.rb"], ddir, + :mode => 0644) end task :test @@ -44,7 +46,7 @@ Rake::RDocTask.new do |t| 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", - "TODO", "lib/redact/redact.rb", + "TODO", "NEWS", "lib/redact/redact.rb", "lib/redact/part.rb", "lib/redact/program.rb") end