From 0df29d1d2f8c6c3a9e11959207912197a43d456f Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sat, 6 Jul 2013 02:18:35 +0200 Subject: fix names of bytecode compiled files --- luaotfload-database.lua | 12 ++++++------ luaotfload-tool.lua | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/luaotfload-database.lua b/luaotfload-database.lua index f09c348..f939e83 100644 --- a/luaotfload-database.lua +++ b/luaotfload-database.lua @@ -1947,7 +1947,7 @@ save_lookups = function ( ) osremove (lucname) caches.compile (lookups, luaname, lucname) --- double check ... - if lfsisfile (luaname) and lfsisfile (luaname) then + if lfsisfile (luaname) and lfsisfile (lucname) then report ("both", 3, "cache", "Lookup cache saved") return true end @@ -1956,10 +1956,10 @@ save_lookups = function ( ) end report ("info", 0, "cache", "Lookup cache file not writable") if not fileiswritable (luaname) then - report ("info", 0, "cache", "failed to write %s", luaname) + report ("info", 0, "cache", "Failed to write %s", luaname) end if not fileiswritable (lucname) then - report ("info", 0, "cache", "failed to write %s", lucname) + report ("info", 0, "cache", "Failed to write %s", lucname) end return false end @@ -1974,7 +1974,7 @@ save_names = function (fontnames) tabletofile (luaname, fontnames, true) osremove (lucname) caches.compile (fontnames, luaname, lucname) - if lfsisfile (luaname) and lfsisfile (luaname) then + if lfsisfile (luaname) and lfsisfile (lucname) then report ("info", 1, "db", "Font index saved") report ("info", 3, "db", "Text: " .. luaname) report ("info", 3, "db", "Byte: " .. lucname) @@ -1985,10 +1985,10 @@ save_names = function (fontnames) end report ("info", 0, "db", "Index file not writable") if not fileiswritable (luaname) then - report ("info", 0, "db", "failed to write %s", luaname) + report ("info", 0, "db", "Failed to write %s", luaname) end if not fileiswritable (lucname) then - report ("info", 0, "db", "failed to write %s", lucname) + report ("info", 0, "db", "Failed to write %s", lucname) end return false end diff --git a/luaotfload-tool.lua b/luaotfload-tool.lua index d618992..0752cca 100755 --- a/luaotfload-tool.lua +++ b/luaotfload-tool.lua @@ -143,9 +143,9 @@ local names = fonts.names local sanitize_string = names.sanitize_string -local pathdata = names.path -local names_plain = pathdata.lookups.lua -local names_bin = pathdata.lookups.luc +local pathdata = names.path +local names_plain = pathdata.index.lua +local names_bin = pathdata.index.luc local help_messages = { ["luaotfload-tool"] = [[ -- cgit v1.2.3