diff options
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -7,10 +7,18 @@ $:.unshift 'lib' require 'mogilefs' Hoe.plugin :seattlerb -if ! File.exist?("ChangeLog") || ! File.exist?("NEWS") - system("wrongdoc all") +wd = %w(ChangeLog NEWS) +wd_ok = true +wd.each do |f| + next if File.exist?(f) || system("wrongdoc all") + wd_ok = false + File.open(f, "a") do |fp| + fp.puts "`wrongdoc all' failed, #{f} not generated properly" + end end +warn "install `wrongdoc' gem to generate: #{wd.inspect}" unless wd_ok + manifest = "Manifest.txt" if ! File.exist?(manifest) || File.stat(manifest).mtime < File.stat(RVF).mtime || |