Sha256: 82fe2fe8cc51cb2c58a230f168d34ffcfd42c203a0cadcb5f87551b20101663e

Contents?: true

Size: 1 KB

Versions: 18

Compression:

Stored size: 1 KB

Contents

#!/usr/bin/env ruby
# encoding: utf-8
#
# Copyright (c) 2010-2013 Kenshi Muto and Masayoshi Takahashi
#
# This program is free software.
# You can distribute or modify this program under the terms of
# the GNU LGPL, Lesser General Public License version 2.1.
# For details of the GNU LGPL, see the file "COPYING".
#
require 'pathname'
require 'optparse'
bindir = Pathname.new(__FILE__).realpath.dirname
$LOAD_PATH.unshift((bindir + '../lib').realpath)
require 'review/epubmaker'
require 'review/version'

rv = ReVIEW::EPUBMaker.new

opts = OptionParser.new
opts.version = ReVIEW::VERSION
opts.banner = "Usage: #{File.basename($0)} [options] YAML_filename [export_filename]"
opts.on('--help', 'Prints this message and quit.') do
  puts opts.help
  exit 0
end

begin
  opts.parse!
rescue OptionParser::ParseError => err
  $stderr.puts err.message
  $stderr.puts opts.help
  exit 1
end


if ARGV.size < 1 || !File.exist?(ARGV[0])
  puts opts.help
  exit 1
end

yaml_file = ARGV[0]
bookname = ARGV[1]
rv.produce(yaml_file, bookname)

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
review-2.2.0 bin/review-epubmaker
review-2.1.0 bin/review-epubmaker
review-2.0.0 bin/review-epubmaker
review-1.7.2 bin/review-epubmaker
review-1.7.1 bin/review-epubmaker
review-peg-0.2.2 bin/review-epubmaker-peg
review-peg-0.2.1 bin/review-epubmaker-peg
review-peg-0.2.0 bin/review-epubmaker-peg
review-peg-0.1.3 bin/review-epubmaker-peg
review-peg-0.1.2 bin/review-epubmaker-peg
review-peg-0.1.1 bin/review-epubmaker-peg
review-peg-0.1.0 bin/review-epubmaker-peg
review-1.7.0 bin/review-epubmaker
review-1.6.0 bin/review-epubmaker
review-2.0.0.beta1 bin/review-epubmaker
review-1.5.0 bin/review-epubmaker
review-1.4.0 bin/review-epubmaker
review-1.3.0 bin/review-epubmaker