diff options
author | Hans Hagen <pragma@wxs.nl> | 2011-05-09 21:19:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2011-05-09 21:19:00 +0200 |
commit | 07cf9f9cc7eb42055d4b7c4863dd9a7d4b860fa0 (patch) | |
tree | 4a451926764fc8bb4c29b7b54b480de6c8606664 /scripts | |
parent | 37993d791c4bb12149fb198b2c2342fe6e507666 (diff) | |
download | context-07cf9f9cc7eb42055d4b7c4863dd9a7d4b860fa0.tar.gz |
beta 2011.05.09 21:19
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/context/lua/mtx-epub.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/context/lua/mtx-epub.lua b/scripts/context/lua/mtx-epub.lua index 5239028ba..e345ff9fd 100644 --- a/scripts/context/lua/mtx-epub.lua +++ b/scripts/context/lua/mtx-epub.lua @@ -89,7 +89,7 @@ function scripts.epub.make() local specfile = file.replacesuffix(filename,"specification") local specification = lfs.isfile(specfile) and dofile(specfile) or { } - inspect(specification) + -- inspect(specification) local name = specification.name or file.removesuffix(filename) local identifier = specification.identifier or os.uuid() @@ -101,6 +101,10 @@ function scripts.epub.make() local epubfile = file.replacesuffix(name,"epub") local epubroot = file.replacesuffix(name,"opf") + lfs.mkdir(epubpath) + lfs.mkdir(file.join(epubpath,"META-INF")) + lfs.mkdir(file.join(epubpath,"OPS")) + local used = { } for i=1,#files do @@ -116,10 +120,6 @@ function scripts.epub.make() container = format(container,epubroot) package = format(package,identifier,identifier,concat(used,"\n"),root) - lfs.mkdir(epubpath) - lfs.mkdir(file.join(epubpath,"META-INF")) - lfs.mkdir(file.join(epubpath,"OPS")) - io.savedata(file.join(epubpath,"mimetype"),mimetype) io.savedata(file.join(epubpath,"META-INF","container.xml"),container) io.savedata(file.join(epubpath,"OPS",epubroot),package) |