Sha256: d2c00312a7c6b2d0e6b875ff264e0e676a8439f837b025471cc7f84f9ebcbe81
Contents?: true
Size: 647 Bytes
Versions: 1
Compression:
Stored size: 647 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) unless File.exist?(command_path) print "cannot find command: #{command}\n\n" usage end exec(command_path, *ARGV)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
review-2.4.0 | bin/review |