summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-07-13 20:06:15 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2014-07-13 20:06:15 +0200
commit157c2ddfd56cb2a4bafb05a41a332431b7f2f837 (patch)
tree7b8e7a3f86cea2bf7a3b98c86513985ac04ae3ff /src
parentfc3414e490d272380dae269ef3153f39f759a85d (diff)
downloadluaotfload-157c2ddfd56cb2a4bafb05a41a332431b7f2f837.tar.gz
[tool] fix references to config table in initialization
Diffstat (limited to 'src')
-rwxr-xr-xsrc/luaotfload-tool.lua21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/luaotfload-tool.lua b/src/luaotfload-tool.lua
index 8cfcac0..4c55508 100755
--- a/src/luaotfload-tool.lua
+++ b/src/luaotfload-tool.lua
@@ -796,9 +796,10 @@ actions.blacklist = function (job)
end
actions.generate = function (job)
- local fontnames = names.update(fontnames, job.force_reload, job.dry_run)
- report ("info", 2, "db", "Fonts in the database: %i", #fontnames.mappings)
- if names.data() then
+ local _ = names.update (fontnames, job.force_reload, job.dry_run)
+ local namedata = names.data ()
+ if namedata then
+ report ("info", 2, "db", "Fonts in the database: %i", #namedata.mappings)
return true, true
end
return false, false
@@ -1504,7 +1505,7 @@ local process_cmdline = function ( ) -- unit -> jobspec
action_pending["flush"] = true
elseif v == "L" then
action_pending["generate"] = true
- config.luaotfload.db.scan_local = true
+ result.config.db.scan_local = true
elseif v == "list" then
action_pending["list"] = true
result.criterion = optarg[n]
@@ -1528,22 +1529,22 @@ local process_cmdline = function ( ) -- unit -> jobspec
result.config.db.formats = optarg[n]
--names.set_font_filter (optarg[n])
elseif v == "n" then
- config.luaotfload.db.update_live = false
+ result.config.db.update_live = false
elseif v == "S" then
- config.luaotfload.misc.statistics = true
+ result.config.misc.statistics = true
elseif v == "R" then
--- dev only, undocumented
- config.luaotfload.db.skip_read = true
+ result.config.db.skip_read = true
elseif v == "c" then
- config.luaotfload.db.compress = false
+ result.config.db.compress = false
elseif v == "no-strip" then
- config.luaotfload.db.strip = false
+ result.config.db.strip = false
elseif v == "max-fonts" then
local n = optarg[n]
if n then
n = tonumber(n)
if n and n > 0 then
- config.luaotfload.db.max_fonts = n
+ result.config.db.max_fonts = n
end
end
elseif v == "bisect" then