diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-08-04 12:04:53 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-08-04 12:04:53 +0200 |
commit | 39be501f308c8bdea7a36b0b366edebc21d4f382 (patch) | |
tree | 2a37c54a1202aa6b1827d18a6785db0132667345 /tex/context/base/mkiv/context.lus | |
parent | 757aa0290bc1f866475e055fdf8a9c6df1124860 (diff) | |
download | context-39be501f308c8bdea7a36b0b366edebc21d4f382.tar.gz |
2020-08-04 10:26:00
Diffstat (limited to 'tex/context/base/mkiv/context.lus')
-rw-r--r-- | tex/context/base/mkiv/context.lus | 58 |
1 files changed, 1 insertions, 57 deletions
diff --git a/tex/context/base/mkiv/context.lus b/tex/context/base/mkiv/context.lus index 960e96adf..29c9b8301 100644 --- a/tex/context/base/mkiv/context.lus +++ b/tex/context/base/mkiv/context.lus @@ -12,60 +12,4 @@ bypass kpse. When the format itself is used, another stub is used (with suffix lui). The current format builder is to a large part determined by the way luatex evolved and the process will probaby change.</p>]]-- -local method = 3 - -local stubfiles = { - - 'luat-cod.lua', - - -- Here follows a list of trac, luat and data files, but we don't - -- it this way any more so there is no need to keep this updated. - -} - --- This method will trigger the creation of a stub file with all neccessary --- libraries merged. This is how we originally did it. - -if method == 1 then - - return stubfiles - -end - --- This method will use this file as stub file so no merge is needed. - -if method == 2 then - - if resolvers then - -- we're loading this file in mtxrun - else - - local sourcepath = string.gsub(arg and arg[1] or "","/[^/]+$","") - local targetpath = "." - - if sourcepath == "" then sourcepath = targetpath end - - for i=1,#stubfiles do - local filename = sourcepath .. "/" .. stubfiles[i] - texio.write_nl("preloading " .. filename) - dofile(filename) - end - texio.write_nl("\n") - - end - - return "context.lus" - -end - --- Only a simple stub: - -if method == 3 then - - return "luat-cod.lua" - -end - --- The last resort. - -return stubfiles +return "luat-cod.lua" |