about summary refs log tree commit homepage
path: root/bin/wrongdoc
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wrongdoc')
-rw-r--r--bin/wrongdoc20
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/wrongdoc b/bin/wrongdoc
new file mode 100644
index 0000000..d33feda
--- /dev/null
+++ b/bin/wrongdoc
@@ -0,0 +1,20 @@
+#!/usr/bin/env ruby
+usage = "Usage: #{File.basename($0)} [prepare]"
+$stderr.sync = $stdout.sync = true
+require 'wrongdoc'
+opts = Wrongdoc.config
+case ARGV[0]
+when "prepare"
+  Wrongdoc::Prepare.new(opts).run
+when "release_notes"
+  Wrongdoc::Release.notes($stdout, opts)
+when "release_changes"
+  Wrongdoc::Release.changes($stdout)
+when "all"
+  Wrongdoc::Prepare.new(opts).run
+  Wrongdoc::Rdoc.new(opts).run
+  Wrongdoc::Merge.new(opts).run
+  Wrongdoc::Final.new(opts, ARGV[1]).run
+else
+  abort "#{$0.inspect} #{ARGV.inspect} not understood"
+end