From 28eebe8a17b640eb101e684b38efe836aa7ade73 Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Mon, 8 Apr 2013 17:38:30 +0200 Subject: Fixing module loading in the script Even though the script should not really be useful anymore, it might be useful for debugging purposes, so I think it's worth fixing it. It was crashing on require("lualibs"), unable to find the module; so I made it load luatexbase.loader.lua, in oder to fix it... --- mkluatexfontdb.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mkluatexfontdb.lua b/mkluatexfontdb.lua index 4275c84..38b9daa 100755 --- a/mkluatexfontdb.lua +++ b/mkluatexfontdb.lua @@ -11,6 +11,14 @@ kpse.set_program_name("luatex") function string.quoted(s) return string.format("%q",s) end -- XXX +-- First we need to be able to load module (code copied from +-- luatexbase-loader.sty): +local file = "luatexbase.loader.lua" +local path = assert(kpse.find_file(file, 'tex'), + "File '"..file.."' not found") +texio.write_nl("("..path..")") +dofile(path) + require("lualibs") require("otfl-basics-gen.lua") require("otfl-font-nms") -- cgit v1.2.3