summaryrefslogtreecommitdiff
path: root/mkluatexfontdb.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-05-16 18:26:00 +0300
committerKhaled Hosny <khaledhosny@eglug.org>2010-05-16 18:28:20 +0300
commit36507882318ca56f0b357846ae62ca21e7cddc0f (patch)
tree13c84545617d719a0d86ecd27883e8a40c9e6f30 /mkluatexfontdb.lua
parent391b8d92bb39d3e6b7eb8a216c028747ad8527fb (diff)
downloadluaotfload-36507882318ca56f0b357846ae62ca21e7cddc0f.tar.gz
Simplify the code
The |status| table need not to reside in a separate file, it is now part of the font names database itself.
Diffstat (limited to 'mkluatexfontdb.lua')
-rwxr-xr-xmkluatexfontdb.lua11
1 files changed, 1 insertions, 10 deletions
diff --git a/mkluatexfontdb.lua b/mkluatexfontdb.lua
index a3b6b10..792167b 100755
--- a/mkluatexfontdb.lua
+++ b/mkluatexfontdb.lua
@@ -130,14 +130,6 @@ end
process_cmdline()
do_run_fc_cache(run_fc_cache)
--- the status table is containing correspondances between absolute path and last modification
--- timestamp, it's uses to save time during update, by not reparsing unchanged fonts.
-local status = nil
-local status_file = output_directory .. "/otfl-names-status.lua"
-if not force_reload and file.isreadable(status_file) then
- status = dofile(status_file)
-end
-
local function generate(force)
log("generating font names database.")
local savepath = output_directory
@@ -162,11 +154,10 @@ local function generate(force)
else
fontnames = nil
end
- fontnames, status = names.update(fontnames, status, force)
+ fontnames = names.update(fontnames, force)
log("%s fonts in the database", #fontnames.mappings)
io.savedata(savepath, table.serialize(fontnames, true))
log("saved font names database in %s\n", savepath)
- io.savedata(status_file, table.serialize(status, true))
end
generate(force_reload)