diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-07-06 01:37:49 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-07-06 01:37:49 +0200 |
commit | c917abdd4c6032b1e715555bc626a987b014e4ab (patch) | |
tree | 2ad179c3aad022c31d4ac8f49ac4d0b0ea2ee8fe /luaotfload-tool.lua | |
parent | 63dff173d9a4d201890b0afa9f3168b45cc5f681 (diff) | |
download | luaotfload-c917abdd4c6032b1e715555bc626a987b014e4ab.tar.gz |
systemize path handling ; improve cache write errors
Diffstat (limited to 'luaotfload-tool.lua')
-rwxr-xr-x | luaotfload-tool.lua | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/luaotfload-tool.lua b/luaotfload-tool.lua index 4d25d53..d618992 100755 --- a/luaotfload-tool.lua +++ b/luaotfload-tool.lua @@ -93,7 +93,7 @@ local config = config config.luaotfload = config.luaotfload or { } config.luaotfload.names_dir = config.luaotfload.names_dir or "names" config.luaotfload.cache_dir = config.luaotfload.cache_dir or "fonts" -config.luaotfload.names_file = config.luaotfload.names_file +config.luaotfload.index_file = config.luaotfload.index_file or "luaotfload-names.lua" do -- we don’t have file.basename and the likes yet, so inline parser ftw @@ -143,11 +143,9 @@ local names = fonts.names local sanitize_string = names.sanitize_string ---local db_src_out = names.path.dir.."/"..names.path.basename -local names_plain = file.join ( - caches.getwritablepath (config.luaotfload.names_dir), - config.luaotfload.names_file) -local names_bin = file.replacesuffix (names_plain, "luc") +local pathdata = names.path +local names_plain = pathdata.lookups.lua +local names_bin = pathdata.lookups.luc local help_messages = { ["luaotfload-tool"] = [[ |