olddoc.git  about / heads / tags
olddoc - old-fashioned RDoc generator(s)
blob 986cc874831a172d2652544b0c976e25d3a6b1a8 489 bytes (raw)
$ git show HEAD:bin/olddoc	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
 
#!/usr/bin/env ruby
# Copyright (C) 2015,2019 all contributors <olddoc-public@80x24.org>
$stderr.sync = $stdout.sync = true
tasks = %w(prepare merge)
usage = "Usage: #{File.basename($0)} [#{tasks.join('|')}]"
require 'olddoc'
opts = Olddoc.config
case ARGV[0]
when "prepare"
  Olddoc::Prepare.new(opts).run
when "merge"
  Olddoc::Merge.new(opts).run
when "man2html"
  Olddoc::Man2HTML.new(opts).run(ARGV[1..-1])
else
  warn "#{$0.inspect} #{ARGV.inspect} not understood"
  abort usage
end

git clone https://80x24.org/olddoc.git