summaryrefslogtreecommitdiff
path: root/src/luaotfload-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-03-23 16:52:27 +0100
committerPhilipp Gesang <phg42.2a@gmail.com>2014-03-23 16:52:27 +0100
commit68d04a338b74a585e12df7ab3200cda389b7c964 (patch)
tree14d8cb638a76cdcf3cca1191337da9a5e2f76ca5 /src/luaotfload-database.lua
parent22dc6f817a3ec342996359fd3b39acea65601c53 (diff)
downloadluaotfload-68d04a338b74a585e12df7ab3200cda389b7c964.tar.gz
[db,tool,main] implement run directive for bisection mode
Diffstat (limited to 'src/luaotfload-database.lua')
-rw-r--r--src/luaotfload-database.lua13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua
index 3cccc17..de1594a 100644
--- a/src/luaotfload-database.lua
+++ b/src/luaotfload-database.lua
@@ -2920,17 +2920,28 @@ order_design_sizes = function (families)
return families
end
---- dbobj -> dbobj -> int -> int -> string * bool list
+--[[doc--
+
+ collect_font_filenames -- Scan the three search path categories for
+ font files. This constitutes the first pass of the update mode.
+
+--doc]]--
+
+--- unit -> string * bool list
local collect_font_filenames = function ()
report ("info", 4, "db", "Scanning the filesystem for font files.")
local filenames = { }
+ local bisect = luaotfloadconfig.bisect
tableappend (filenames, collect_font_filenames_texmf ())
tableappend (filenames, collect_font_filenames_system ())
if luaotfloadconfig.scan_local == true then
tableappend (filenames, collect_font_filenames_local ())
end
+ if bisect then
+ return { unpack (filenames, bisect[1], bisect[2]) }
+ end
return filenames
end