diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-06-14 19:20:49 +0300 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-06-14 19:20:49 +0300 |
commit | 512f49ec1170393876661f478d672676eae38671 (patch) | |
tree | 57dc5e14e08a69bbe574e90a382457245d32f836 /mkluatexfontdb.lua | |
parent | ef3b811cf53162958e32e8e72de50498ec29b34c (diff) | |
download | luaotfload-512f49ec1170393876661f478d672676eae38671.tar.gz |
Cosmetics
Utilize lualibs functions when apporiate.
Diffstat (limited to 'mkluatexfontdb.lua')
-rwxr-xr-x | mkluatexfontdb.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mkluatexfontdb.lua b/mkluatexfontdb.lua index a72478b..a2d208d 100755 --- a/mkluatexfontdb.lua +++ b/mkluatexfontdb.lua @@ -135,7 +135,7 @@ local function generate(force) os.exit(1) end end - savepath = savepath .. '/' .. names.path.basename + savepath = file.join(savepath, names.path.basename) local fh = io.open(savepath, 'a+') if not fh then texio.write_nl(string.format("Error: cannot write file '%s', exiting.\n", savepath)) @@ -150,7 +150,7 @@ local function generate(force) end fontnames = names.update(fontnames, force) log("%s fonts in the database", #fontnames.mappings) - io.savedata(savepath, table.serialize(fontnames, true)) + table.tofile(savepath, fontnames, true) log("saved font names database in %s\n", savepath) end |