texlive[61185] trunk: l3build (29nov21)

commits+karl at tug.org commits+karl at tug.org
Mon Nov 29 22:11:43 CET 2021


Revision: 61185
          http://tug.org/svn/texlive?view=revision&revision=61185
Author:   karl
Date:     2021-11-29 22:11:43 +0100 (Mon, 29 Nov 2021)
Log Message:
-----------
l3build (29nov21)

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-arguments.lua
    trunk/Master/texmf-dist/scripts/l3build/l3build-check.lua
    trunk/Master/texmf-dist/scripts/l3build/l3build-file-functions.lua
    trunk/Master/texmf-dist/scripts/l3build/l3build-help.lua
    trunk/Master/texmf-dist/scripts/l3build/l3build-install.lua
    trunk/Master/texmf-dist/scripts/l3build/l3build-manifest-setup.lua
    trunk/Master/texmf-dist/scripts/l3build/l3build-typesetting.lua
    trunk/Master/texmf-dist/scripts/l3build/l3build-upload.lua
    trunk/Master/texmf-dist/scripts/l3build/l3build-variables.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	2021-11-29 21:11:20 UTC (rev 61184)
+++ trunk/Build/source/texk/texlive/linked_scripts/l3build/l3build.lua	2021-11-29 21:11:43 UTC (rev 61185)
@@ -25,7 +25,7 @@
 --]]
 
 -- Version information
-release_date = "2021-11-24"
+release_date = "2021-11-29"
 
 -- 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	2021-11-29 21:11:20 UTC (rev 61184)
+++ trunk/Master/texmf-dist/doc/latex/l3build/CHANGELOG.md	2021-11-29 21:11:43 UTC (rev 61185)
@@ -7,8 +7,25 @@
 
 ## [Unreleased]
 
+## [2021-11-29]
+
+### Changed
+- Documentation improvements
+- Use `checkengines[1]` as the default for `stdengine`
+- Add sanity check for `TEXMFHOME` value
+- Double \ when writing the curl options, so that \ 
+  does not need to be doubled in note and announcement texts.
+
+### Fixed
+- Installation of files when using MiKTeX (see #125)
+- Incorrect line in `manifest` target (see #195)
+- Placement of PDF files in subdirectory locations (issue #209)
+- Detection of engine-specific tlg files for non-standard LuaTeX based engines (issues #214)
+
 ## [2021-11-24]
 
+- Always typeset in `typesetdir` (fixes #210)
+
 ## [2021-11-12]
 
 ### Changed
@@ -521,7 +538,8 @@
 - Rationalise short option names: removed `-d`, `-E`, `-r`
 - Target `cmdcheck`: specific to LaTeX kernel work
 
-[Unreleased]: https://github.com/latex3/l3build/compare/2021-11-24...HEAD
+[Unreleased]: https://github.com/latex3/l3build/compare/2021-11-29...HEAD
+[2021-11-29]: https://github.com/latex3/l3build/compare/2021-11-24...2021-11-29
 [2021-11-24]: https://github.com/latex3/l3build/compare/2021-11-12...2021-11-24
 [2021-11-12]: https://github.com/latex3/l3build/compare/2021-08-28...2021-11-12
 [2021-08-28]: https://github.com/latex3/l3build/compare/2021-08-27...2021-08-28

Modified: trunk/Master/texmf-dist/doc/latex/l3build/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/l3build/README.md	2021-11-29 21:11:20 UTC (rev 61184)
+++ trunk/Master/texmf-dist/doc/latex/l3build/README.md	2021-11-29 21:11:43 UTC (rev 61185)
@@ -1,7 +1,7 @@
 l3build: a testing and building system for LaTeX
 =================================================
 
-Release 2021-11-24
+Release 2021-11-29
 
 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	2021-11-29 21:11:20 UTC (rev 61184)
+++ trunk/Master/texmf-dist/doc/man/man1/l3build.1	2021-11-29 21:11:43 UTC (rev 61185)
@@ -1,4 +1,4 @@
-.TH l3build 1 "2021-11-24"
+.TH l3build 1 "2021-11-29"
 .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-arguments.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build-arguments.lua	2021-11-29 21:11:20 UTC (rev 61184)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build-arguments.lua	2021-11-29 21:11:43 UTC (rev 61185)
@@ -136,7 +136,7 @@
       },
     ["show-log-on-error"] =
       {
-        desc  = "If 'halt-on-error' stops, show the full log of the failure",
+        desc  = "Show the full log of the failure with 'halt-on-error'",
         type  = "boolean"
       },
     ["show-saves"] =

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build-check.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build-check.lua	2021-11-29 21:11:20 UTC (rev 61184)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build-check.lua	2021-11-29 21:11:43 UTC (rev 61185)
@@ -684,9 +684,9 @@
   local errorlevel
   local testname = name .. "." .. engine
   -- Do additional log formatting if the engine is LuaTeX, there is no
-  -- LuaTeX-specific .tlg file and the default engine is not LuaTeX
+  -- engine-specific .tlg file and the default engine is not LuaTeX
   if (match(engine,"^lua") or match(engine,"^harf"))
-    and not match(tlgfile, "%.luatex" .. "%" .. tlgext)
+    and not match(tlgfile, "%." .. engine .. "%" .. tlgext)
     and not match(stdengine,"^lua")
     then
     local lualogfile = logfile

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build-file-functions.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build-file-functions.lua	2021-11-29 21:11:20 UTC (rev 61184)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build-file-functions.lua	2021-11-29 21:11:43 UTC (rev 61185)
@@ -177,7 +177,7 @@
   if ok then
     local result = currentdir()
     chdir(oldpwd)
-    return escapepath(gsub(result, "\\", "/"))
+    return escapepath(gsub(gsub(result,"^\\\\%?\\",""), "\\", "/"))
   end
   error(msg)
 end

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build-help.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build-help.lua	2021-11-29 21:11:20 UTC (rev 61184)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build-help.lua	2021-11-29 21:11:43 UTC (rev 61185)
@@ -32,7 +32,7 @@
     "\n" ..
     "l3build: A testing and building system for LaTeX\n\n" ..
     "Release " .. release_date .. "\n" ..
-    "Copyright (C) 2014-2020 The LaTeX Project"
+    "Copyright (C) 2014-2021 The LaTeX Project"
   )
 end
 

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build-install.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build-install.lua	2021-11-29 21:11:20 UTC (rev 61184)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build-install.lua	2021-11-29 21:11:43 UTC (rev 61185)
@@ -38,6 +38,10 @@
 local function gethome()
   set_program("latex")
   local result = options["texmfhome"] or var_value("TEXMFHOME")
+  if not result or result == "" or match(result, os_pathsep) then
+    print("Ambiguous TEXMFHOME setting: please use the --texmfhome option")
+    os.exit(1)
+  end
   mkdir(result)
   return abspath(result)
 end

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build-manifest-setup.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build-manifest-setup.lua	2021-11-29 21:11:20 UTC (rev 61184)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build-manifest-setup.lua	2021-11-29 21:11:43 UTC (rev 61185)
@@ -243,7 +243,7 @@
   filehandle:write("# Manifest for " .. module .. "\n\n")
   filehandle:write([[
 This file is a listing of all files considered to be part of this package.
-It is automatically generated with `texlua build.lua manifest`.
+It is automatically generated with `l3build manifest`.
 ]])
 
 end

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build-typesetting.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build-typesetting.lua	2021-11-29 21:11:20 UTC (rev 61184)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build-typesetting.lua	2021-11-29 21:11:43 UTC (rev 61185)
@@ -141,9 +141,7 @@
     print(" ! Compilation failed")
     return errorlevel
   end
-  local pdfname = name .. pdfext
-  rm(docfiledir,pdfname)
-  return cp(pdfname,dir,docfiledir)
+  return 0
 end
 
 function typeset(file,dir,exe)
@@ -211,7 +209,8 @@
   local done = {}
   for _,typesetfiles in ipairs({typesetdemofiles,typesetfiles}) do
     for _,glob in pairs(typesetfiles) do
-      for _,p in ipairs(tree(typesetdir,glob)) do
+      local destpath,globstub = splitpath(glob)
+      for _,p in ipairs(tree(typesetdir,globstub)) do
         local path,srcname = splitpath(p.cwd)
         local name = jobname(srcname)
         if not done[name] then
@@ -233,6 +232,9 @@
               return errorlevel
             else
               done[name] = true
+              local pdfname = jobname(srcname) .. pdfext
+              rm(pdfname,destpath)
+              cp(pdfname,path,destpath)
             end
           end
         end

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build-upload.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build-upload.lua	2021-11-29 21:11:20 UTC (rev 61184)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build-upload.lua	2021-11-29 21:11:43 UTC (rev 61185)
@@ -319,6 +319,7 @@
       if (max > 0 and len(vs) > max) then
         error("The field " .. fname .. " is longer than " .. max)
       end
+      vs = vs:gsub('\\','\\\\')
       vs = vs:gsub('"','\\"')
       vs = vs:gsub('`','\\`')
       vs = vs:gsub('\n','\\n')

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build-variables.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build-variables.lua	2021-11-29 21:11:20 UTC (rev 61184)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build-variables.lua	2021-11-29 21:11:43 UTC (rev 61185)
@@ -133,7 +133,7 @@
     {luatex = {binary="luahbtex",format = "lualatex-dev"}}
 end
 
-stdengine    = stdengine    or "pdftex"
+stdengine = stdengine or checkengines[1] or "pdftex"
 
 -- The tests themselves
 includetests = includetests or {"*"}

Modified: trunk/Master/texmf-dist/scripts/l3build/l3build.lua
===================================================================
--- trunk/Master/texmf-dist/scripts/l3build/l3build.lua	2021-11-29 21:11:20 UTC (rev 61184)
+++ trunk/Master/texmf-dist/scripts/l3build/l3build.lua	2021-11-29 21:11:43 UTC (rev 61185)
@@ -25,7 +25,7 @@
 --]]
 
 -- Version information
-release_date = "2021-11-24"
+release_date = "2021-11-29"
 
 -- 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	2021-11-29 21:11:20 UTC (rev 61184)
+++ trunk/Master/texmf-dist/source/latex/l3build/l3build.dtx	2021-11-29 21:11:43 UTC (rev 61185)
@@ -236,7 +236,7 @@
 %    }^^A
 % }
 %
-% \date{Released 2021-11-24}
+% \date{Released 2021-11-29}
 %
 % \maketitle
 % \tableofcontents
@@ -1525,7 +1525,8 @@
 % \meta{package}|-ctan.curlopt|. This is then passed to curl using its
 % |--config| commandline option.  (Using an intermediate file helps
 % keep \pkg{l3build} portable between systems using different
-% commandline quoting conventions.)
+% commandline quoting conventions. Any backslashes are doubled when writing 
+% to this file, so they do not need to be doubled in announcement and note texts.)
 %
 % By default the file is written into the current directory alongside
 % the zip file to be uploaded. You may wish to specify that this file
@@ -1858,7 +1859,7 @@
 %
 % \subsection{Typesetting functions}
 %
-% All typetting functions return $0$ on a successful completion.
+% All typesetting functions return $0$ on a successful completion.
 %
 % \begin{function}{biber()}
 %   \begin{syntax}
@@ -1905,7 +1906,7 @@
 %   when creating non-standard typesetting steps.
 % \end{function}
 %
-% \subsection{Customising the target list}
+% \subsection{Customising the target and option lists}
 %
 % The targets known to \pkg{l3build} are stored in the global table
 % |target_list|. Each entry should have at least a |func|, pointing to the
@@ -1924,6 +1925,13 @@
 % \end{itemize}
 % The functions |func|, |bundle_func| and |pre| must return 0 on success.
 %
+% The list of options (switches) is controlled by the |option_list| table.
+% The name of each entry in the table is the \enquote{long} version of the
+% option. Each entry requires a |type|, one of |boolean|, |string| or
+% |table|. As for targets, each entry should have a |desc| to construct
+% the |help()|. It is also possible to provide a |short| name for the option:
+% this should be a single letter.
+%
 % \subsection{Customising the manifest file}
 % \label{sec:manifest}
 %



More information about the tex-live-commits mailing list.