Sha256: 8442caf9c84847112452241a5473d49f45224a92f1c8adbfc583e90157b00fe2
Contents?: true
Size: 648 Bytes
Versions: 4
Compression:
Stored size: 648 Bytes
Contents
#!/usr/bin/env ruby # # review: Wrapper command to call subcommand # # ex. # review epubmaker config.yml # -> call `review-epubmaker config.yml` # require 'pathname' def usage message = <<-EOB usage: review <command> [<args>] ReVIEW commands are: init preproc compile epubmaker pdfmaker vol check index validate EOB print message exit 1 end usage if ARGV.length == 0 command = "review-#{ARGV.shift}" bindir = Pathname.new(__FILE__).realpath.dirname command_path = File.join(bindir, command) if !File.exist?(command_path) print "cannot find command: #{command}\n\n" usage end exec(command_path, *ARGV)
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
review-2.3.0 | bin/review |
review-2.2.0 | bin/review |
review-2.1.0 | bin/review |
review-2.0.0 | bin/review |