Skip to content

Commit

Permalink
Bug correction in epub (zip) generation
Browse files Browse the repository at this point in the history
  • Loading branch information
glejeune committed May 9, 2010
1 parent 0ba9cf9 commit f34432d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/jekyll/epub.rb
Expand Up @@ -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
Expand Down

0 comments on commit f34432d

Please sign in to comment.