From 02d4d3cbde5e1e94e056cdf3b732145a37413fdb Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Sat, 6 Sep 2014 20:59:00 +0200 Subject: beta 2014.09.06 20:59 --- scripts/context/lua/mtx-epub.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/context/lua/mtx-epub.lua b/scripts/context/lua/mtx-epub.lua index 2af21990d..a15058e4d 100644 --- a/scripts/context/lua/mtx-epub.lua +++ b/scripts/context/lua/mtx-epub.lua @@ -133,6 +133,8 @@ local t_toc = [[ + + @@ -165,6 +167,7 @@ local t_navtoc = [[ + navtoc @@ -188,6 +191,7 @@ local t_coverxhtml = [[ + cover page @@ -489,8 +493,16 @@ function scripts.epub.make() lfs.chdir("..") + local treefile = file.join(epubpath,epubfile) + + os.remove(epubfile) + file.copy(treefile,epubfile) + if lfs.isfile(epubfile) then + os.remove(treefile) + end + if done then - application.report("epub archive made using %s: %s",done,file.join(epubpath,epubfile)) + application.report("epub archive made using %s: %s",done,epubfile) else local list = { } for i=1,#zippers do -- cgit v1.2.3