Skip to content
Browse files

Bug correction in epub (zip) generation

  • Loading branch information...
1 parent 0ba9cf9 commit f34432d21e1cadc434bf76ddae240fad83887354 @glejeune committed May 9, 2010
Showing with 2 additions and 6 deletions.
  1. +2 −6 lib/jekyll/epub.rb
View
8 lib/jekyll/epub.rb
@@ -177,17 +177,13 @@ def apply_epub_filters( files ) #:nodoc:
# This is a Jekyll[http://jekyllrb.com] extension
#
# Create the epub file...
- #
- # WARNING: does not work !!! So please generate the epub file by hand :
- #
- # cd _epub/src
- # zip -Xr9D MyBook.epub mimetype *
def zip #:nodoc:
Dir.chdir( self.dest ) do
filename = self.config['epub']['name']
filename += ".epub" unless File.extname(filename) == ".epub"
$stderr.puts "** Create epub file #{filename} in #{Dir.pwd}..."
- %x(zip -Xr9D \"#{filename}\" mimetype *)
+ %x(zip -X9 \"#{filename}\" mimetype)
+ %x(zip -Xr9D \"#{filename}\" * -xi mimetype)
end
end
end

0 comments on commit f34432d

Please sign in to comment.
Something went wrong with that request. Please try again.