Sha256: 13404ea66a57849c4d008d9a0fb1653872591770793956999e22af9d943aad00

Contents?: true

Size: 500 Bytes

Versions: 1

Compression:

Stored size: 500 Bytes

Contents

#!/usr/bin/env ruby

$LOAD_PATH << File.expand_path(File.dirname(__FILE__) + '/../lib')

require 'docbook_xsl_wrapper'


options = DocbookXslWrapper::Options.parse(ARGV)
docbook = options.docbook

raise ArgumentError.new("File #{docbook} does not exist") unless File.exist?(docbook)

doc = DocbookXslWrapper::Validate.new(File.open(docbook, 'rb'))
unless doc.valid?
  puts "YOUR DOCBOOK XML DOES NOT SEEM TO BE VALID - PLEASE FIX."
  puts
  puts doc.errors
end

DocbookXslWrapper.build_epub(options)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
docbook_xsl_wrapper-0.5.2 bin/docbook_xsl_wrapper