summaryrefslogtreecommitdiff
path: root/mkluatexfontdb.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-06-14 19:20:49 +0300
committerKhaled Hosny <khaledhosny@eglug.org>2010-06-14 19:20:49 +0300
commit512f49ec1170393876661f478d672676eae38671 (patch)
tree57dc5e14e08a69bbe574e90a382457245d32f836 /mkluatexfontdb.lua
parentef3b811cf53162958e32e8e72de50498ec29b34c (diff)
downloadluaotfload-512f49ec1170393876661f478d672676eae38671.tar.gz
Cosmetics
Utilize lualibs functions when apporiate.
Diffstat (limited to 'mkluatexfontdb.lua')
-rwxr-xr-xmkluatexfontdb.lua4
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