diff options
author | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-05-06 05:26:35 -0700 |
---|---|---|
committer | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-05-06 05:26:35 -0700 |
commit | 6cb8c7ab0b577053c57872d476b8a5933369fbea (patch) | |
tree | 7edc5fc21fa26aaeb15de8c439ee518ec224bd16 /mkglyphlist | |
parent | 778267979a304bd83228fd0077c453a953d35fd0 (diff) | |
parent | dc3781fc328b18282f42b7813a7952d00f36ef8c (diff) | |
download | luaotfload-6cb8c7ab0b577053c57872d476b8a5933369fbea.tar.gz |
Merge pull request #15 from lualatex/master
Sync with lualatex repo
Diffstat (limited to 'mkglyphlist')
-rwxr-xr-x | mkglyphlist | 10 |
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 |