[latex3-commits] [l3svn] 01/02: source files from testfiledir on check or save

noreply at latex-project.org noreply at latex-project.org
Thu Aug 27 09:38:46 CEST 2015


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

joseph pushed a commit to branch master
in repository l3svn.

commit 3b71ff80f2ecf3b0bede90e429d70484cd4725bf
Author: XZS <d.f.fischer at web.de>
Date:   Sat Feb 28 20:39:55 2015 +0100

    source files from testfiledir on check or save
    
    Test files may still be placed in testfiledir, even when packed. Keeping
    them there adds the benefit that they will only be considered with the
    check and save families of commands.
    
    This introduces a new parameter to the bundleunpack function, without
    changing its behaviour. It can be used to specify directories to search
    for the sourcefiles and defaults to the previously used local directory.
---
 l3build/l3build.lua |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index c939faf..22121f7 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -583,7 +583,7 @@ function checkinit()
   for _,i in ipairs(filelist(localdir)) do
     cp(i, localdir, testdir)
   end
-  bundleunpack()
+  bundleunpack({".", testfiledir})
   for _,i in ipairs(installfiles) do
     cp(i, unpackdir, testdir)
   end
@@ -1503,11 +1503,14 @@ end
 
 -- Split off from the main unpack so it can be used on a bundle and not
 -- leave only one modules files
-bundleunpack = bundleunpack or function()
+bundleunpack = bundleunpack or function(sourcedir)
   mkdir(localdir)
   cleandir(unpackdir)
-  for _,i in ipairs(sourcefiles) do
-    cp(i, ".", unpackdir)
+  for _,i in ipairs(sourcedir or {"."}) do
+    for _,j in ipairs(sourcefiles) do
+      print(j, i, unpackdir)
+      cp(j, i, unpackdir)
+    end
   end
   for _,i in ipairs(unpacksuppfiles) do
     cp(i, supportdir, localdir)

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


More information about the latex3-commits mailing list