Sha256: ddb18ea51f86f1dba638d9b38fb22feea1a3263ba0b869ec5a78f9190f558503

Contents?: true

Size: 498 Bytes

Versions: 6

Compression:

Stored size: 498 Bytes

Contents

#!/usr/bin/env ruby

# parses 'kindlegen builds/mobi/book.epub'
book_mobi = ARGV.shift

if RUBY_PLATFORM =~ /linux|cygwin/
  executable = 'kindlegen_linux'
elsif RUBY_PLATFORM =~ /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

6 entries across 6 versions & 1 rubygems

Version Path
prophecy-0.2.7 bin/kindlegen
prophecy-0.2.6 bin/kindlegen
prophecy-0.2.5 bin/kindlegen
prophecy-0.2.4 bin/kindlegen
prophecy-0.2.3 bin/kindlegen
prophecy-0.2.2 bin/kindlegen