bin/olddoc in olddoc-1.7.1 vs bin/olddoc in olddoc-1.8.0
- old
+ new
@@ -1,16 +1,18 @@
#!/usr/bin/env ruby
-# Copyright (C) 2015, all contributors <olddoc-public@80x24.org>
+# 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