[latex3-commits] [git/l3build] sourcedir: Parameterise builddir (582f9b4)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Dec 8 09:01:27 CET 2017


Repository : https://github.com/latex3/l3build
On branch  : sourcedir
Link       : https://github.com/latex3/l3build/commit/582f9b437e3d85bca6077f288a7c6f0a842dd47f

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

commit 582f9b437e3d85bca6077f288a7c6f0a842dd47f
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Dec 8 08:01:27 2017 +0000

    Parameterise builddir
    
    Same as 08086cd1237151dbf9c51b3346aba252bd36b745, really.


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

582f9b437e3d85bca6077f288a7c6f0a842dd47f
 l3build.dtx |   11 ++++++-----
 l3build.lua |   13 +++++++------
 2 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/l3build.dtx b/l3build.dtx
index d5adf1a..c0a532b 100644
--- a/l3build.dtx
+++ b/l3build.dtx
@@ -63,11 +63,12 @@
 \luavarset{testfiledir}{maindir .. "/testfiles"}  {Directory containing test files}
 \luavarset{testsuppdir}{testfiledir .. "/support"}{Directory containing test-specific support files}
 \luavarseparator
-\luavarset{distribdir}{maindir .. "/build/distrib"}{Directory for generating distribution structure}
-\luavarset{localdir}  {maindir .. "/build/local"}  {Directory for extracted files in \enquote{sandboxed} \TeX{} runs}
-\luavarset{testdir}   {maindir .. "/build/test"}   {Directory for running tests}
-\luavarset{typesetdir}{maindir .. "/build/doc"}    {Directory for building documentation}
-\luavarset{unpackdir} {maindir .. "/build/unpack"} {Directory for unpacking sources}
+\luavarset{builddir}  {maindir .. "/build"}   {Directory for building and testing}
+\luavarset{distribdir}{builddir .. "/distrib"}{Directory for generating distribution structure}
+\luavarset{localdir}  {builddir .. "/local"}  {Directory for extracted files in \enquote{sandboxed} \TeX{} runs}
+\luavarset{testdir}   {builddir .. "/test"}   {Directory for running tests}
+\luavarset{typesetdir}{builddir .. "/doc"}    {Directory for building documentation}
+\luavarset{unpackdir} {builddir .. "/unpack"} {Directory for unpacking sources}
 \luavarseparator
 \luavarset{ctandir}{distribdir .. "/ctan"}{Directory for organising files for CTAN}
 \luavarset{tdsdir} {distribdir .. "/tds"} {Directory for organised files into TDS structure}
diff --git a/l3build.lua b/l3build.lua
index ba47427..c521fe9 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -70,11 +70,12 @@ testfiledir = testfiledir or "testfiles"
 testsuppdir = testsuppdir or testfiledir .. "/support"
 
 -- Structure within a development area
-distribdir = distribdir or maindir .. "/build/distrib"
-localdir   = localdir   or maindir .. "/build/local"
-testdir    = testdir    or maindir .. "/build/test"
-typesetdir = typesetdir or maindir .. "/build/doc"
-unpackdir  = unpackdir  or maindir .. "/build/unpacked"
+builddir   = builddir   or maindir .. "/build"
+distribdir = distribdir or builddir .. "/distrib"
+localdir   = localdir   or builddir .. "/local"
+testdir    = testdir    or builddir .. "/test"
+typesetdir = typesetdir or builddir .. "/doc"
+unpackdir  = unpackdir  or builddir .. "/unpacked"
 
 -- Substructure for CTAN release material
 ctandir = ctandir or distribdir .. "/ctan"
@@ -691,7 +692,7 @@ function tree(path, glob)
       for _, file in ipairs(filelist(dir, pattern)) do
         local fullpath = path .. "/" .. file
         if file ~= "." and file ~= ".." and
-          fullpath ~= maindir .. "/build" and
+          fullpath ~= builddir and
           (sub(pattern, 1, 1) == "."
             or sub(file, 1, 1) ~= ".")
         then





More information about the latex3-commits mailing list