summaryrefslogtreecommitdiff
path: root/mkglyphlist
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2013-05-06 05:26:35 -0700
committerElie Roux <elie.roux@telecom-bretagne.eu>2013-05-06 05:26:35 -0700
commit6cb8c7ab0b577053c57872d476b8a5933369fbea (patch)
tree7edc5fc21fa26aaeb15de8c439ee518ec224bd16 /mkglyphlist
parent778267979a304bd83228fd0077c453a953d35fd0 (diff)
parentdc3781fc328b18282f42b7813a7952d00f36ef8c (diff)
downloadluaotfload-6cb8c7ab0b577053c57872d476b8a5933369fbea.tar.gz
Merge pull request #15 from lualatex/master
Sync with lualatex repo
Diffstat (limited to 'mkglyphlist')
-rwxr-xr-xmkglyphlist10
1 files changed, 7 insertions, 3 deletions
diff --git a/mkglyphlist b/mkglyphlist
index d73a608..281c736 100755
--- a/mkglyphlist
+++ b/mkglyphlist
@@ -27,9 +27,13 @@ require"lpeg"
require"socket"
kpse.set_program_name"luatex"
-dofile(kpse.find_file("lualibs-lua.lua", "lua"))
-dofile(kpse.find_file("lualibs-lpeg.lua", "lua"))
-dofile(kpse.find_file("lualibs-table.lua", "lua")) --- for serialization
+for _, lib in next, { "lualibs-lua.lua",
+ "lualibs-lpeg.lua",
+ "lualibs-table.lua", } do
+ local found = assert(kpse.find_file(lib, "lua"),
+ "Could not locate " .. lib)
+ require(found)
+end
local C, Cf, Cg, Ct, P, R =
lpeg.C, lpeg.Cf, lpeg.Cg, lpeg.Ct, lpeg.P, lpeg.R