[latex3-commits] [git/LaTeX3-latex3-l3build] master: force...epoch fixed (80cffdb)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Feb 24 16:07:29 CET 2021


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/80cffdb7004cbca5e72b23151a14b5008acbc1ee

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

commit 80cffdb7004cbca5e72b23151a14b5008acbc1ee
Author: LAURENS Jérôme <jerome.laurens at u-bourgogne.fr>
Date:   Wed Feb 24 16:00:05 2021 +0100

    force...epoch fixed


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

80cffdb7004cbca5e72b23151a14b5008acbc1ee
 l3build-aux.lua         | 5 +++--
 l3build-check.lua       | 2 +-
 l3build-typesetting.lua | 4 ++--
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/l3build-aux.lua b/l3build-aux.lua
index 477c20b..aba7a69 100644
--- a/l3build-aux.lua
+++ b/l3build-aux.lua
@@ -64,11 +64,12 @@ end
 ---when forcecheckepoch is true, a void string otherwise.
 ---Will be run while checking or typesetting
 --- at param epoch string
+--- at param force boolean
 --- at return string
 --- at see check, typesetting
 --- at usage private?
-function set_epoch_cmd(epoch)
-  return forcecheckepoch and (
+function set_epoch_cmd(epoch, force)
+  return force and (
     os_setenv .. " SOURCE_DATE_EPOCH=" .. epoch
       .. os_concat ..
     os_setenv .. " SOURCE_DATE_EPOCH_TEX_PRIMITIVES=1"
diff --git a/l3build-check.lua b/l3build-check.lua
index a307241..8123947 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -776,7 +776,7 @@ function runtest(name, engine, hide, ext, test_type, breakout)
       -- Allow for local texmf files
       os_setenv .. " TEXMFCNF=." .. os_pathsep
         .. os_concat ..
-      set_epoch_cmd(epoch) ..
+      set_epoch_cmd(epoch, forcecheckepoch) ..
       -- Ensure lines are of a known length
       os_setenv .. " max_print_line=" .. maxprintline
         .. os_concat ..
diff --git a/l3build-typesetting.lua b/l3build-typesetting.lua
index da57cb8..8eb77e4 100644
--- a/l3build-typesetting.lua
+++ b/l3build-typesetting.lua
@@ -38,7 +38,7 @@ local os_type = os.type
 function dvitopdf(name, dir, engine, hide)
   run(
     dir,
-    set_epoch_cmd(epoch) ..
+    set_epoch_cmd(epoch, forcecheckepoch) ..
     "dvips " .. name .. dviext
       .. (hide and (" > " .. os_null) or "")
       .. os_concat ..
@@ -68,7 +68,7 @@ function runcmd(cmd,dir,vars)
   for _,var in pairs(vars) do
     env = env .. os_concat .. os_setenv .. " " .. var .. "=" .. envpaths
   end
-  return run(dir,set_epoch_cmd(epoch) .. env .. os_concat .. cmd)
+  return run(dir,set_epoch_cmd(epoch, forcedocepoch) .. env .. os_concat .. cmd)
 end
 
 function biber(name,dir)





More information about the latex3-commits mailing list.