wrongdoc.git  about / heads / tags
RDoc done right (IMNSHO)
blob 5e6bd36216b21fb29228c8876ec57a433298f902 620 bytes (raw)
$ git show HEAD:bin/wrongdoc	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
#!/usr/bin/env ruby
tasks = %w(prepare release_notes release_changes all)
usage = "Usage: #{File.basename($0)} [#{tasks.join('|')}]"
$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
  warn "#{$0.inspect} #{ARGV.inspect} not understood"
  abort usage
end

git clone https://yhbt.net/wrongdoc.git