diff options
author | Karl Berry <karl@freefriends.org> | 2016-10-20 21:58:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-10-20 21:58:18 +0000 |
commit | 5f1524fcdff9993b3c8a7a5cbd344e541eaf315d (patch) | |
tree | b46e6046d31727820792196983e2ff6777669b6a /Master/texmf-dist/tex/latex/l3build | |
parent | c760c6fb940eb0b42386ff8208d978cd96622f62 (diff) |
l3build (20oct16)
git-svn-id: svn://tug.org/texlive/trunk@42311 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3build')
-rw-r--r-- | Master/texmf-dist/tex/latex/l3build/l3build.lua | 34 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/l3build/regression-test.tex | 2 |
2 files changed, 29 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/l3build/l3build.lua b/Master/texmf-dist/tex/latex/l3build/l3build.lua index f6a58a0a1c4..f75a96959be 100644 --- a/Master/texmf-dist/tex/latex/l3build/l3build.lua +++ b/Master/texmf-dist/tex/latex/l3build/l3build.lua @@ -17,8 +17,8 @@ --]] -- Version information: should be identical to that in l3build.dtx -release_date = "2016/06/22" -release_ver = "6641" +release_date = "2016/10/19" +release_ver = "6730" -- "module" is a deprecated function in Lua 5.2: as we want the name -- for other purposes, and it should eventually be 'free', simply @@ -110,7 +110,7 @@ typesetexe = typesetexe or "pdflatex" unpackexe = unpackexe or "tex" zipexe = "zip" -checkopts = checkopts or "-interaction=batchmode" +checkopts = checkopts or "-interaction=nonstopmode" cmdchkopts = cmdchkopts or "-interaction=batchmode" typesetopts = typesetopts or "-interaction=nonstopmode" unpackopts = unpackopts or "" @@ -611,7 +611,7 @@ function allmodules(target) end local release = "" if optrelease then - release = " --release=" .. release[1] + release = " --release=" .. optrelease[1] end local errorlevel = run( i, @@ -792,8 +792,19 @@ function formatlog(logfile, newfile, engine) if checksearch then line = string.gsub(line, "%(.*/([%w-]+%.[%w-]+)%)?%s*$", "(../%1") end - -- Zap map loading of map - line = string.gsub(line, "%{%w?:?[%w/%-]*/pdftex%.map%}", "") + -- Deal with the map line: some wrapping then a zap + if string.match(lastline, "*pdftex%.map") then + print("MAP ELONG") + line = lastline .. line + lastline = "" + end + if string.match(line, "%{[^%}]*pdftex%.map%}") then + if string.match(line, "pdftex%.map%}%s*%(") and + not string.match(line, "%)%s*$") then + return "", line + end + end + line = string.gsub(line, "%{[^%}]*/pdftex%.map%}", "") -- Deal with the fact that "(.aux)" may have still a leading space line = string.gsub(line, "^ %(%.aux%)", "(.aux)") -- Merge all of .fd data into one line so will be removed later @@ -881,6 +892,7 @@ function formatlualog(logfile, newfile) -- Find \discretionary or \whatsit lines: -- These may come back later if string.match(line, "^%.+\\discretionary$") or + string.match(line, "^%.+\\discretionary %(penalty 50%)$") or string.match(line, "^%.+\\discretionary50%|$") or string.match(line, "^%.+\\discretionary50%| replacing $") or string.match(line, "^%.+\\whatsit$") then @@ -891,6 +903,8 @@ function formatlualog(logfile, newfile) if string.match(line, "^%.+\\mathon$") then return line, line end + -- LuaTeX has a flexible output box + line = string.gsub(line,"\\box\\outputbox", "\\box255") -- LuaTeX identifies spaceskip glue line = string.gsub(line,"%(\\spaceskip%) ", " ") -- Remove 'display' at end of display math boxes: @@ -934,9 +948,15 @@ function formatlualog(logfile, newfile) local function boxprefix(s) return string.gsub(string.match(s, "^(%.+)"), "%.", "%%.") end + -- 'Recover' some discretionary data + if string.match(lastline, "^%.+\\discretionary %(penalty 50%)$") and + string.match(line, boxprefix(lastline) .. "%.= ") then + return string.gsub(line, "%.= ", ""),"" + end -- Where the last line was a discretionary, looks for the -- info one level in about what it represents if string.match(lastline, "^%.+\\discretionary$") or + string.match(lastline, "^%.+\\discretionary %(penalty 50%)$") or string.match(lastline, "^%.+\\discretionary50%|$") or string.match(lastline, "^%.+\\discretionary50%| replacing $") then local prefix = boxprefix(lastline) @@ -958,6 +978,8 @@ function formatlualog(logfile, newfile) if string.match(lastline, "^%.+\\discretionary50%|$") then lastline = string.gsub(lastline, "50%|$", "") end + -- Remove some info that TeX90 lacks + lastline = string.gsub(lastline, " %(penalty 50%)$", "") -- A normal (TeX90) discretionary: -- add with the line break reintroduced return lastline .. os_newline .. line, "" diff --git a/Master/texmf-dist/tex/latex/l3build/regression-test.tex b/Master/texmf-dist/tex/latex/l3build/regression-test.tex index 7e77b55cdda..3d10ca5e1f8 100644 --- a/Master/texmf-dist/tex/latex/l3build/regression-test.tex +++ b/Master/texmf-dist/tex/latex/l3build/regression-test.tex @@ -56,7 +56,7 @@ \unprotect \def\reset@catcodes{\protect}% \fi -\scrollmode +\ifnum\interactionmode>1 \scrollmode\fi \errorcontextlines=-1 % \showboxbreadth=\maxdimen \showboxdepth=\maxdimen |