summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-07-06 02:18:35 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-07-06 02:18:35 +0200
commit0df29d1d2f8c6c3a9e11959207912197a43d456f (patch)
tree7a768d6a753e4cfdf4291f3b2d40d9029810ae9b
parentc917abdd4c6032b1e715555bc626a987b014e4ab (diff)
downloadluaotfload-0df29d1d2f8c6c3a9e11959207912197a43d456f.tar.gz
fix names of bytecode compiled files
-rw-r--r--luaotfload-database.lua12
-rwxr-xr-xluaotfload-tool.lua6
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"] = [[