[latex3-commits] [git/l3build] revert-36-sourcefiledir: Revert "Activate sourcefiledir" (ad3adf2)

GitHub noreply at github.com
Tue Nov 28 20:41:40 CET 2017


Repository : https://github.com/latex3/l3build
On branch  : revert-36-sourcefiledir
Link       : https://github.com/latex3/l3build/commit/ad3adf2c4a60333973e87c4ad83e4bb28d07f419

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

commit ad3adf2c4a60333973e87c4ad83e4bb28d07f419
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Nov 28 19:41:40 2017 +0000

    Revert "Activate sourcefiledir"
    
    This reverts commit 9a4f31cae7fa421585147f7cf68f5961a1add171.


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

ad3adf2c4a60333973e87c4ad83e4bb28d07f419
 l3build.lua |   26 ++++++++++++--------------
 1 file changed, 12 insertions(+), 14 deletions(-)

diff --git a/l3build.lua b/l3build.lua
index 56bed90..bbc3594 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -838,7 +838,7 @@ function checkinit()
   for _,i in ipairs(filelist(localdir)) do
     cp(i, localdir, testdir)
   end
-  bundleunpack({sourcefiledir, testfiledir})
+  bundleunpack({".", testfiledir})
   for _,i in ipairs(installfiles) do
     cp(i, unpackdir, testdir)
   end
@@ -1895,9 +1895,7 @@ function clean()
     cleandir(typesetdir) +
     cleandir(unpackdir)
   for _,i in ipairs(cleanfiles) do
-    for _,dir in pairs({maindir, sourcefiledir, docfiledir}) do
-      errorlevel = rm(dir, i) + errorlevel
-    end
+    errorlevel = rm(".", i) + errorlevel
   end
   return errorlevel
 end
@@ -1905,7 +1903,7 @@ end
 function bundleclean()
   local errorlevel = call(modules, "clean")
   for _,i in ipairs(cleanfiles) do
-    errorlevel = rm(maindir, i) + errorlevel
+    errorlevel = rm(".", i) + errorlevel
   end
   return (
     errorlevel     +
@@ -1933,7 +1931,7 @@ function cmdcheck()
   local localdir = abspath(localdir)
   print("Checking source files")
   for _,i in ipairs(cmdchkfiles) do
-    for _,j in ipairs(filelist(sourcefiledir, i)) do
+    for _,j in ipairs(filelist(".", i)) do
       print("  " .. jobname(j))
       run(
         testdir,
@@ -2009,7 +2007,7 @@ function ctan(standalone)
   end
   if errorlevel == 0 then
     for _,i in ipairs(textfiles) do
-      for _,j in pairs({unpackdir, maindir}) do
+      for _,j in pairs({unpackdir, "."}) do
         cp(i, j, ctandir .. "/" .. ctanpkg)
         cp(i, j, tdsdir .. "/doc/" .. tdsroot .. "/" .. bundle)
       end
@@ -2019,7 +2017,7 @@ function ctan(standalone)
       cp(ctanpkg .. ".tds.zip", tdsdir, ctandir)
     end
     dirzip(ctandir, ctanpkg)
-    cp(ctanpkg .. ".zip", ctandir, maindir)
+    cp(ctanpkg .. ".zip", ctandir, ".")
   else
     print("\n====================")
     print("Typesetting failed, zip stage skipped!")
@@ -2031,20 +2029,20 @@ end
 function bundlectan()
   -- Generate a list of individual file names excluding those in the second
   -- argument: the latter is a table
-  local function excludelist(include, exclude, dir)
+  local function excludelist(include, exclude)
     local include = include or { }
     local exclude = exclude or { }
     local includelist = { }
     local excludelist = { }
     for _,i in ipairs(exclude) do
       for _,j in ipairs(i) do
-        for _,k in ipairs(filelist(dir, j)) do
+        for _,k in ipairs(filelist(".", j)) do
           excludelist[k] = true
         end
       end
     end
     for _,i in ipairs(include) do
-      for _,j in ipairs(filelist(dir, i)) do
+      for _,j in ipairs(filelist(".", i)) do
         if not excludelist[j] then
           insert(includelist, j)
         end
@@ -2066,9 +2064,9 @@ function bundlectan()
     for _,v in pairs(typesetdemofiles) do
       insert(typesetfiles, v)
     end
-    typesetlist = excludelist(typesetfiles, {sourcefiles}, docfiledir)
+    typesetlist = excludelist(typesetfiles, {sourcefiles})
     sourcelist = excludelist(
-      sourcefiles, {bstfiles, installfiles, makeindexfiles}, sourcefiledir
+      sourcefiles, {bstfiles, installfiles, makeindexfiles}
     )
     copyctan()
     copytds()
@@ -2293,7 +2291,7 @@ function setversion(dir)
   end
   local date = options["date"] or os_date("%Y-%m-%d")
   local version = options["version"] or -1
-  local dir = dir or sourcefiledir
+  local dir = dir or "."
   for _,i in pairs(versionfiles) do
     for _,j in pairs(filelist(dir, i)) do
       rewrite(dir, j, date, version)





More information about the latex3-commits mailing list