From 25a7a537bdf23e76dc5cbcdc95b87a25b3ef7d42 Mon Sep 17 00:00:00 2001 From: sejo Date: Mon, 10 Jan 2022 11:44:47 -0600 Subject: [PATCH] zip in required order --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5c189d9..bc38851 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,9 @@ example-gpub: cd example-gpub; zip -r ../example-book.gpub *; cd - epub: - cd out; zip -r ../out.epub *; cd - + find . -name "out.epub" -exec rm {} \; + cd out; zip -X ../out.epub mimetype + cd out; zip -rg ../out.epub META-INF content.opf style.css toc.ncx book example: awk -f g2e.awk example-gpub/