summaryrefslogtreecommitdiff
path: root/mkluatexfontdb.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <megas.kapaneus@gmail.com>2013-04-10 19:10:22 +0200
committerPhilipp Gesang <megas.kapaneus@gmail.com>2013-04-10 19:10:22 +0200
commitcf25e2f185676223b565ab5e099fcc1b83fabfa8 (patch)
treedea63d3fb820dabde6db978095e194b48accbc5f /mkluatexfontdb.lua
parenta9b52bd969d9285b9d74a80399a133b0c3f92739 (diff)
downloadluaotfload-cf25e2f185676223b565ab5e099fcc1b83fabfa8.tar.gz
fallback for earlier lualibs; move locals up in luaotfload.lua
Diffstat (limited to 'mkluatexfontdb.lua')
-rwxr-xr-xmkluatexfontdb.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/mkluatexfontdb.lua b/mkluatexfontdb.lua
index 38b9daa..ca955cb 100755
--- a/mkluatexfontdb.lua
+++ b/mkluatexfontdb.lua
@@ -13,13 +13,15 @@ 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")
+local loader_file = "luatexbase.loader.lua"
+local path = assert(kpse.find_file(loader_file, 'tex'),
+ "File '"..loader_file.."' not found")
texio.write_nl("("..path..")")
dofile(path)
require("lualibs")
+--- TODO we seriously need recent lualibs
+file.splitpath, file.collapsepath = file.split_path, file.collapse_path
require("otfl-basics-gen.lua")
require("otfl-font-nms")
require("alt_getopt")