summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-04 20:12:10 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-04 20:12:10 +0200
commit4d710465b3ee51293a0f4154f14f26b951351819 (patch)
tree5eb4bfd88b7d9ddf18982e61143f5b6fc2e52909
parentb6df45277d50880e6a66dc93bc19615a7d3310c4 (diff)
downloadluaotfload-4d710465b3ee51293a0f4154f14f26b951351819.tar.gz
make ``mkglyphlist`` fail orderly
-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