Sha256: 10cf591322ed12957f5504b8bc1a0588a8537786ad3e8f948c794aacb705542b
Contents?: true
Size: 513 Bytes
Versions: 3
Compression:
Stored size: 513 Bytes
Contents
#!/usr/bin/ruby # parses 'kindlegen builds/mobi/book.epub' book_mobi = ARGV.shift if RUBY_PLATFORM =~ /linux|cygwin/ executable = 'kindlegen_linux' elsif RUBY_PLATFORM =~ /darwin/ puts "its darwin" executable = 'kindlegen_mac' elsif RUBY_PLATFORM =~ /mingw|mswin32/ executable = 'kindlegen.exe' else raise "Invalid platform. Must be running linux, intel-based Mac OS, or Windows XP/7." end executable = File.join(File.dirname(__FILE__), executable) system(executable + " " + $*.join(" ") + book_mobi)
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
prophecy-0.0.1 | bin/kindlegen |
bookshop-0.1.8 | bin/kindlegen |
bookshop-0.1.7 | bin/kindlegen |