[latex3-commits] [l3svn] 02/02: typeset upacked files

noreply at latex-project.org noreply at latex-project.org
Mon Apr 10 15:02:12 CEST 2017


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

commit 642e3c5a485a973eb58d898ce5a6861465c8dce4
Author: XZS <d.f.fischer at web.de>
Date:   Fri Apr 7 20:05:18 2017 +0200

    typeset upacked files
    
    Some typesetfiles may be generated by the unpacking process. They can be
    found by looking in the unpackdir, too.
---
 l3build/l3build.lua |   30 ++++++++++++++++--------------
 1 file changed, 16 insertions(+), 14 deletions(-)

diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index 4f4cec2..35171b8 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -1840,22 +1840,24 @@ function doc(files)
   unpack()
   -- Main loop for doc creation
   for _,i in ipairs(typesetfiles) do
-    for _,j in ipairs(filelist(".", i)) do
-      -- Allow for command line selection of files
-      local typeset = true
-      if files and next(files) then
-        typeset = false
-        for _,k in ipairs(files) do
-          if k == stripext(j) then
-            typeset = true
-            break
+    for _, dir in ipairs({unpackdir, typesetdir}) do
+      for _,j in ipairs(filelist(dir, i)) do
+        -- Allow for command line selection of files
+        local typeset = true
+        if files and next(files) then
+          typeset = false
+          for _,k in ipairs(files) do
+            if k == stripext(j) then
+              typeset = true
+              break
+            end
           end
         end
-      end
-      if typeset then
-        local errorlevel = typesetpdf(j)
-        if errorlevel ~= 0 then
-          return errorlevel
+        if typeset then
+          local errorlevel = typesetpdf(relpath(dir, ".") .. "/" .. j)
+          if errorlevel ~= 0 then
+            return errorlevel
+          end
         end
       end
     end

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list