diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/l3build/l3build.lua')
-rw-r--r-- | Master/texmf-dist/source/latex/l3build/l3build.lua | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/latex/l3build/l3build.lua b/Master/texmf-dist/source/latex/l3build/l3build.lua index 9e6bd7d8c59..3abb619392b 100644 --- a/Master/texmf-dist/source/latex/l3build/l3build.lua +++ b/Master/texmf-dist/source/latex/l3build/l3build.lua @@ -17,8 +17,8 @@ --]] -- Version information: should be identical to that in l3build.dtx -release_date = "2014/08/25" -release_ver = "5378" +release_date = "2014/09/15" +release_ver = "5423" -- "module" is a deprecated function in Lua 5.2: as we want the name -- for other purposes, and it should eventually be 'free', simply @@ -129,6 +129,7 @@ end -- Other required settings checkruns = checkruns or 1 +packtdszip = packtdszip or false -- Not actually needed but clearer scriptname = scriptname or "build.lua" -- Script used in each directory typesetcmds = typesetcmds or "" @@ -472,6 +473,10 @@ function formatlog (logfile, newfile) line = string.gsub ( line, "cm, mm, dd, cc, bp, or sp", "cm, mm, dd, cc, nd, nc, bp, or sp" ) + -- Normalise a case where a LuaTeX bug misprints \csname\endcsname + -- This comes before the normalisation of the appearance of + -- \csname\endcsname in case we alter that! + line = string.gsub (line, "\\ycsnam\\rendcsnam", "\\csname\\endcsname") -- Normalise a case where fixing a TeX bug changes the message text line = string.gsub (line, "\\csname\\endcsname ", "\\csname\\endcsname") -- Zap "on line <num>" and replace with "on line ..." @@ -646,7 +651,6 @@ help = help or function () print " build save <name> - save test log for <name> for all engines " print " build save <name> <engine> - save test log for <name> for <engine> " end - print " build unpack - extract packages " print "" end @@ -817,7 +821,9 @@ function ctan (standalone) end end dirzip (tdsdir, bundle .. ".tds") - cp (bundle .. ".tds.zip", tdsdir, ctandir) + if packtdszip then + cp (bundle .. ".tds.zip", tdsdir, ctandir) + end dirzip (ctandir, bundle) cp (bundle .. ".zip", ctandir, ".") else |