From 36507882318ca56f0b357846ae62ca21e7cddc0f Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 16 May 2010 18:26:00 +0300 Subject: Simplify the code The |status| table need not to reside in a separate file, it is now part of the font names database itself. --- mkluatexfontdb.lua | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'mkluatexfontdb.lua') 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) -- cgit v1.2.3