[latex3-commits] [git/l3build] sourcefiledir: 'Activate' sourcefiledir (27bd9eb)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Nov 28 08:56:00 CET 2017


Repository : https://github.com/latex3/l3build
On branch  : sourcefiledir
Link       : https://github.com/latex3/l3build/commit/27bd9eb37ea01d250c74b44b5c17b8ba8412bcff

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

commit 27bd9eb37ea01d250c74b44b5c17b8ba8412bcff
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Nov 28 07:56:00 2017 +0000

    'Activate' sourcefiledir
    
    Not yest tested with a suitable structure ...


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

27bd9eb37ea01d250c74b44b5c17b8ba8412bcff
 l3build.lua |   17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/l3build.lua b/l3build.lua
index 62a20bd..bbc3594 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -872,10 +872,11 @@ function copyctan()
       cp(file, docfiledir, ctandir .. "/" .. ctanpkg)
     end
   end
-  for _,filetype in pairs({sourcefiles, textfiles}) do
-    for _,file in pairs(filetype) do
-      cp(file, maindir, ctandir .. "/" .. ctanpkg)
-    end
+  for _,file in pairs(sourcefiles) do
+    cp(file, sourcefiledir, ctandir .. "/" .. ctanpkg)
+  end
+  for _,file in pairs(textfiles) do
+    cp(file, maindir, ctandir .. "/" .. ctanpkg)
   end
 end
 
@@ -921,7 +922,7 @@ function copytds()
   )
   install(unpackdir, "makeindex", {makeindexfiles}, true)
   install(unpackdir, "bibtex/bst", {bstfiles}, true)
-  install(maindir, "source", {sourcelist})
+  install(sourcefiledir, "source", {sourcelist})
   install(unpackdir, "tex", {installfiles})
 end
 
@@ -1924,7 +1925,7 @@ function cmdcheck()
     end
   end
   for _,file in pairs(sourcefiles) do
-    cp(file, maindir, typesetdir)
+    cp(file, sourcefiledir, typesetdir)
   end
   local engine = gsub(stdengine, "tex$", "latex")
   local localdir = abspath(localdir)
@@ -2086,13 +2087,13 @@ function doc(files)
     end
   end
   for _,file in pairs(sourcefiles) do
-    cp(file, maindir, typesetdir)
+    cp(file, sourcefiledir, typesetdir)
   end
   for _,i in ipairs(typesetsuppfiles) do
     cp(i, supportdir, typesetdir)
   end
   depinstall(typesetdeps)
-  unpack({sourcefiles, typesetsourcefiles}, {maindir, docfiledir})
+  unpack({sourcefiles, typesetsourcefiles}, {sourcefiledir, docfiledir})
   -- Main loop for doc creation
   local done = {}
   for _, typesetfiles in ipairs({typesetdemofiles, typesetfiles}) do





More information about the latex3-commits mailing list