[latex3-commits] [git/LaTeX3-latex3-l3build] main: Fix return location of PDFs (22a2bad)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Dec 6 16:50:53 CET 2021


Repository : https://github.com/latex3/l3build
On branch  : main
Link       : https://github.com/latex3/l3build/commit/22a2badfcca5afab351bdb039f10d99f20a607fa

>---------------------------------------------------------------

commit 22a2badfcca5afab351bdb039f10d99f20a607fa
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Dec 6 15:50:53 2021 +0000

    Fix return location of PDFs


>---------------------------------------------------------------

22a2badfcca5afab351bdb039f10d99f20a607fa
 CHANGELOG.md            | 3 +++
 l3build-typesetting.lua | 1 +
 2 files changed, 4 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index edb288f..43a8922 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,9 @@ this project uses date-based 'snapshot' version identifiers.
 
 ## [Unreleased]
 
+### Fixed
+- Place PDF files inside `docfiledir` in all cases
+
 ## [2021-11-29]
 
 ### Changed
diff --git a/l3build-typesetting.lua b/l3build-typesetting.lua
index d6d3981..cc04ac1 100644
--- a/l3build-typesetting.lua
+++ b/l3build-typesetting.lua
@@ -210,6 +210,7 @@ function doc(files)
   for _,typesetfiles in ipairs({typesetdemofiles,typesetfiles}) do
     for _,glob in pairs(typesetfiles) do
       local destpath,globstub = splitpath(glob)
+      destpath = docfiledir .. gsub(gsub(destpath,"^./",""),"^.","")
       for _,p in ipairs(tree(typesetdir,globstub)) do
         local path,srcname = splitpath(p.cwd)
         local name = jobname(srcname)





More information about the latex3-commits mailing list.