about summary refs log tree commit homepage
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 3e06787..1adba47 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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 ||