Make sure to delete the output file in case of an exception.
[redact.git] / Rakefile
index 54a6f066a165d41392839953bc4eab4d75da0d9c..d0940e59dc59a0194187b92cce39c928af5eedae 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -1,4 +1,4 @@
-# $Id: Rakefile 14 2005-03-29 16:25:21Z tilman $
+# $Id: Rakefile 38 2005-04-25 17:47:15Z tilman $
 
 require "rake/clean"
 require "rake/testtask"
@@ -16,7 +16,7 @@ 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"]}"
@@ -29,11 +29,8 @@ 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.install(Dir["lib/redact/*.rb"], ddir,
+                                  :mode => 0644)
 end
 
 task :test
@@ -49,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