texlive[48724] trunk: l3build (21sep18)

commits+karl at tug.org commits+karl at tug.org
Fri Sep 21 23:07:27 CEST 2018


Revision: 48724
          http://tug.org/svn/texlive?view=revision&revision=48724
Author:   karl
Date:     2018-09-21 23:07:27 +0200 (Fri, 21 Sep 2018)
Log Message:
-----------
l3build (21sep18)

Modified Paths:
--------------
    trunk/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua
    trunk/Master/texmf-dist/doc/latex/l3build/CHANGELOG.md
    trunk/Master/texmf-dist/doc/latex/l3build/README.md
    trunk/Master/texmf-dist/doc/latex/l3build/l3build.pdf
    trunk/Master/texmf-dist/doc/man/man1/l3build.1
    trunk/Master/texmf-dist/doc/man/man1/l3build.man1.pdf
    trunk/Master/texmf-dist/scripts/l3build/l3build-check.lua
    trunk/Master/texmf-dist/scripts/l3build/l3build-clean.lua
    trunk/Master/texmf-dist/scripts/l3build/l3build.lua
    trunk/Master/texmf-dist/source/latex/l3build/l3build.dtx

Modified: trunk/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua
===================================================================
--- trunk/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua	2018-09-21 21:07:02 UTC (rev 48723)
+++ trunk/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua	2018-09-21 21:07:27 UTC (rev 48724)
@@ -25,7 +25,7 @@
 --]]
 
 -- Version information
-release_date = "2018-08-07"
+release_date = "2018-09-21"
 
 -- File operations are aided by the LuaFileSystem module
 local lfs = require("lfs")

Modified: trunk/Master/texmf-dist/doc/latex/l3build/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/l3build/CHANGELOG.md	2018-09-21 21:07:02 UTC (rev 48723)
+++ trunk/Master/texmf-dist/doc/latex/l3build/CHANGELOG.md	2018-09-21 21:07:27 UTC (rev 48724)
@@ -7,6 +7,15 @@
 
 ## [Unreleased]
 
+## [2018-09-21]
+
+### Changed
+
+- Normalise date lines to contain "...-..-.." rather than removing
+  (including normalising version data in such lines): note that
+  `.tlg` file updates may be required after this change
+- Explicitly exclude `.fd` file lines
+
 ## [2018-08-07]
 
 ### Changed
@@ -150,7 +159,8 @@
 - Rationalise short option names: removed `-d`, `-E`, `-r`
 - Target `cmdcheck`: specific to LaTeX3 kernel work
 
-[Unreleased]: https://github.com/latex3/l3build/compare/2018-08-04...HEAD
+[Unreleased]: https://github.com/latex3/l3build/compare/2018-09-21...HEAD
+[2018-09-21]: https://github.com/latex3/l3build/compare/2018-08-07...2018-09-21
 [2018-08-07]: https://github.com/latex3/l3build/compare/2018-08-04...2018-08-07
 [2018-08-04]: https://github.com/latex3/l3build/compare/2018-08-02...2018-08-04
 [2018-08-02]: https://github.com/latex3/l3build/compare/2018-05-10...2018-08-02

Modified: trunk/Master/texmf-dist/doc/latex/l3build/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/l3build/README.md	2018-09-21 21:07:02 UTC (rev 48723)
+++ trunk/Master/texmf-dist/doc/latex/l3build/README.md	2018-09-21 21:07:27 UTC (rev 48724)
@@ -1,7 +1,7 @@
 l3build: a testing and building system for LaTeX3
 =================================================
 
-Release 2018-08-07
+Release 2018-09-21
 
 Overview
 --------

Modified: trunk/Master/texmf-dist/doc/latex/l3build/l3build.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/man/man1/l3build.1
===================================================================
--- trunk/Master/texmf-dist/doc/man/man1/l3build.1	2018-09-21 21:07:02 UTC (rev 48723)
+++ trunk/Master/texmf-dist/doc/man/man1/l3build.1	2018-09-21 21:07:27 UTC (rev 48724)
@@ -1,4 +1,4 @@
-.TH l3build 1 "2018-08-07"
+.TH l3build 1 "2018-09-21"
 .SH NAME
 l3build \- Checking and building packages
 .SH SYNOPSIS

Modified: trunk/Master/texmf-dist/doc/man/man1/l3build.man1.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build-check.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build-check.lua	2018-09-21 21:07:02 UTC (rev 48723)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build-check.lua	2018-09-21 21:07:27 UTC (rev 48724)
@@ -102,23 +102,23 @@
     maxprintline = maxprintline + 1 -- Deal with an out-by-one error
   end
   local function killcheck(line)
-      -- Skip lines containing file dates
-      if match(line, "[^<]%d%d%d%d/%d%d/%d%d") 
-         or match(line, "[^<]%d%d%d%d%-%d%d%-%d%d") then
-        return true
-      elseif
       -- Skip \openin/\openout lines in web2c 7.x
       -- As Lua doesn't allow "(in|out)", a slightly complex approach:
       -- do a substitution to check the line is exactly what is required!
-        match(
-          gsub(line, "^\\openin", "\\openout"), "^\\openout%d%d? = "
-        ) then
-        return true
-      end
+    if match(gsub(line, "^\\openin", "\\openout"), "^\\openout%d%d? = ") then
+      return true
+    end
     return false
   end
     -- Substitutions to remove some non-useful changes
-  local function normalize(line, lastline)
+  local function normalize(line,lastline,drop_fd)
+    if drop_fd then
+      if match(line," *%)") then
+        return "",""
+      else
+        return "","",true
+      end
+    end
     -- Zap line numbers from \show, \showbox, \box_show and the like:
     -- do this before wrapping lines
     line = gsub(line, "^l%.%d+ ", "l. ...")
@@ -151,12 +151,16 @@
         line = gsub(line, pattern, "../%1")
       end
     end
+    -- Deal with dates
+    if match(line, "[^<]%d%d%d%d[/%-]%d%d[/%-]%d%d") then
+        line = gsub(line,"%d%d%d%d[/%-]%d%d[/%-]%d%d","....-..-..")
+        line = gsub(line,"v%d+%.?%d?%d?%w?","v...")
+    end
     -- Deal with the fact that "(.aux)" may have still a leading space
     line = gsub(line, "^ %(%.aux%)", "(.aux)")
-    -- Merge all of .fd data into one line so will be removed later
+    -- Zap .fd lines: drop the first part, and skip to the end
     if match(line, "^ *%([%.%/%w]+%.fd[^%)]*$") then
-      lastline = (lastline or "") .. line
-      return "", (lastline or "") .. line
+      return "","",true
     end
     -- TeX90/XeTeX knows only the smaller set of dimension units
     line = gsub(line,
@@ -250,6 +254,7 @@
     return line, lastline
   end
   local lastline = ""
+  local drop_fd = false
   local new_content = ""
   local prestart = true
   local skipping = false
@@ -264,7 +269,7 @@
     elseif match(line, "^%)?TIMO$") then
       skipping = false
     elseif not prestart and not skipping then
-      line, lastline = normalize(line, lastline)
+      line, lastline, drop_fd = normalize(line, lastline,drop_fd)
       if not match(line, "^ *$") and not killcheck(line) then
         new_content = new_content .. line .. os_newline
       end
@@ -526,7 +531,10 @@
 -- Run one test which may have multiple engine-dependent comparisons
 -- Should create a difference file for each failed test
 function runcheck(name, hide)
-  if not testexists(name) then return 1 end
+  if not testexists(name) then
+    print("Failed to find input for test " .. name)
+    return 1
+  end
   local checkengines = checkengines
   if options["engine"] then
     checkengines = options["engine"]

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build-clean.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build-clean.lua	2018-09-21 21:07:02 UTC (rev 48723)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build-clean.lua	2018-09-21 21:07:27 UTC (rev 48724)
@@ -45,7 +45,7 @@
 function bundleclean()
   local errorlevel = call(modules, "clean")
   for _,i in ipairs(cleanfiles) do
-    errorlevel = rm(maindir, i) + errorlevel
+    errorlevel = rm(currentdir, i) + errorlevel
   end
   return (
     errorlevel     +

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build.lua	2018-09-21 21:07:02 UTC (rev 48723)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build.lua	2018-09-21 21:07:27 UTC (rev 48724)
@@ -25,7 +25,7 @@
 --]]
 
 -- Version information
-release_date = "2018-08-07"
+release_date = "2018-09-21"
 
 -- File operations are aided by the LuaFileSystem module
 local lfs = require("lfs")

Modified: trunk/Master/texmf-dist/source/latex/l3build/l3build.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/l3build/l3build.dtx	2018-09-21 21:07:02 UTC (rev 48723)
+++ trunk/Master/texmf-dist/source/latex/l3build/l3build.dtx	2018-09-21 21:07:27 UTC (rev 48724)
@@ -59,7 +59,7 @@
 \luavarseparator
 \luavarset{maindir}     {"."}                      {Top level directory for the module/bundle}
 \luavarset{docfiledir}  {"."}                 {Directory containing documentation files}
-\luavarset{sourcfiledir}{"."}                 {Directory containing source files}
+\luavarset{sourcefiledir}{"."}                 {Directory containing source files}
 \luavarset{supportdir} {maindir .. "/support"}    {Directory containing general support files}
 \luavarset{testfiledir}{"./testfiles"}  {Directory containing test files}
 \luavarset{testsuppdir}{testfiledir .. "/support"}{Directory containing test-specific support files}
@@ -158,7 +158,7 @@
 \luavarset{maxprintline}{79}          {Length of line to use in log files}
 \luavarset{packtdszip}  {false}       {Switch to build a TDS-style zip file for CTAN}
 \luavarset{typesetcmds} {""}          {Instructions to be passed to \TeX{} when doing typesetting.}
-\luavarset{typsetcycles}{3}           {Number of cycles of typesetting to carry out.}
+\luavarset{typesetruns}{3}            {Number of cycles of typesetting to carry out.}
 \luavarset{recordstatus}{false}       {Switch to include error level from test runs in \texttt{.tlg} files}
 \luavarset{manifestfile}        {"MANIFEST.md"} {Filename to use for the manifest file.}
 }
@@ -222,7 +222,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2018-08-07}
+% \date{Released 2018-09-21}
 %
 % \maketitle
 % \tableofcontents
@@ -330,7 +330,7 @@
 % \item |--force| (|-f|) Force checks to run even if sanity
 %   checks fail, \emph{e.g.}~when |--engine| is not given in
 %   \luavar{checkengines}
-% \item |--full| Instructs the \texttt{install} target to include the 
+% \item |--full| Instructs the \texttt{install} target to include the
 %   \texttt{doc} and \texttt{source} trees
 % \item |--halt-on-error| (|-H|) Specifies that checks
 %   should stop as soon as possible, rather than running all requested
@@ -630,7 +630,7 @@
 %
 % Tests are run in a single directory, so whilst they are may be isolated from
 % the system \TeX{} tree they do share files. This may be significant if
-% installation-type files are generated during a test, for example by a 
+% installation-type files are generated during a test, for example by a
 % |filecontents| environment in \LaTeX{}. Typically, you should set up your
 % tests such that they do not use the same names for such files: this may lead
 % to variable outcomes depending on the order in which tests are run.
@@ -745,8 +745,8 @@
 %   \item Lines before the \cs{START}, after the \cs{END} and within
 %     \cs{OMIT}/\cs{TIMO} blocks
 %   \item Entirely blank lines, including those consisting only of spaces.
-%   \item Lines containing file dates in format
-%    \texttt{\meta{yyyy}/\meta{mm}/\meta{dd}}.
+%   \item Lines related to loading |.fd| files (from \texttt{(\meta{name}.fd}
+%     to the matching \texttt{)}).
 %  \item Lines starting \cs{openin} or \cs{openout}.
 % \end{itemize}
 % Modifications made in lines are:
@@ -762,6 +762,8 @@
 %     years due to a \TeX{} bug).
 %   \item Conversion of \texttt{on line \meta{number}} to \texttt{on line ...}
 %     to allow flexibility in changes to test files.
+%   \item Conversion of file dates to \texttt{....-..-..}, and any version
+%     numbers on the same lines to \texttt{v...}.
 %   \item Conversion of register numbers in assignment lines
 %     \texttt{\cs{\meta{register}}=\cs{\meta{type}}\meta{number}} to
 %     \texttt{\cs{\meta{type}}\meta{...}}



More information about the tex-live-commits mailing list