Sha256: f7410d4f23037f5299a41eaac06e28004730badf1a20403cbf48ad34ed930821
Contents?: true
Size: 564 Bytes
Versions: 2
Compression:
Stored size: 564 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH << File.expand_path(File.dirname(__FILE__) + '/../lib') require 'tmpdir' require 'docbook_xsl_wrapper' options = DocbookXslWrapper::Options.parse(ARGV) unless File.exist?(options.docbook) raise ArgumentError.new("File #{options.docbook} does not exist") end tmp_dir = Dir.mktmpdir options.destination = tmp_dir begin puts "Rendering DocBook file #{options.docbook} to #{options.output}\n\n" if options.verbose epub = DocbookXslWrapper::Epub.new(options) epub.create ensure FileUtils.remove_entry_secure tmp_dir end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
docbook_xsl_wrapper-0.1.2 | bin/docbook_xsl_wrapper |
docbook_xsl_wrapper-0.1.1 | bin/docbook_xsl_wrapper |