about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-07-31 18:13:52 -0700
committerEric Wong <normalperson@yhbt.net>2012-08-01 17:14:03 -0700
commita301becc927ca0df97d4a4de65c4e924459eeda2 (patch)
tree7d567e48a23d06ddc64f5012992a8a9ffc679d72
parentcec83abf9f047d81f09a9cd1cd4cf67c49e13132 (diff)
downloadmogilefs-client-a301becc927ca0df97d4a4de65c4e924459eeda2.tar.gz
Don't require users to have wrongdoc installed to generate
a prerelease gem
-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 ||