[latex3-commits] [l3svn] branch master updated: l3build: Add "epoch" variable
noreply at latex-project.org
noreply at latex-project.org
Sat May 21 00:10:18 CEST 2016
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository l3svn.
The following commit(s) were added to refs/heads/master by this push:
new 16d63a4 l3build: Add "epoch" variable
16d63a4 is described below
commit 16d63a4efb0f0afc9ba5ffb8e9b36e27e76c4fd9
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri May 20 23:09:46 2016 +0100
l3build: Add "epoch" variable
First step in making reproducible PDF builds for testing.
---
l3build/l3build.dtx | 1 +
l3build/l3build.lua | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/l3build/l3build.dtx b/l3build/l3build.dtx
index 4b2fb0b..3907b01 100644
--- a/l3build/l3build.dtx
+++ b/l3build/l3build.dtx
@@ -154,6 +154,7 @@
\luavarseparator
\luavarset{asciiengines}{\{"pdftex"\}}{Engines which should log as sure ASCII}
\luavarset{checkruns} {1} {How many times to run a check file before comparing the log.}
+\luavarset{epoch} {1463734800} {Epoch (Unix date) to set for test runs.}
\luavarset{maxprintline}{79} {Length of line to use in log files.}
\luavarset{packtdszip} {false} {Build a TDS-style zip file for CTAN?}
\luavarset{scriptname} {"build.lua"} {Name of script used in dependencies.}
diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index e15a2b6..7bfb27f 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -149,6 +149,7 @@ makeindexopts = makeindexopts or ""
-- Other required settings
asciiengines = asciiengines or {"pdftex"}
checkruns = checkruns or 1
+epoch = epoch or 1463734800
maxprintline = maxprintline or 79
packtdszip = packtdszip or false -- Not actually needed but clearer
scriptname = scriptname or "build.lua" -- Script used in each directory
@@ -1180,6 +1181,10 @@ function runtest(name, engine, hide, ext)
-- Avoid spurious output from (u)pTeX
os_setenv .. " GUESS_INPUT_KANJI_ENCODING=0"
.. os_concat ..
+ -- Fix the time of the run
+ os_setenv .. " SOURCE_DATE_EPOCH=" .. epoch
+ .. " SOURCE_DATE_EPOCH_TEX_PRIMITIVES=1"
+ .. os_concat ..
-- Ensure lines are of a known length
os_setenv .. " max_print_line=" .. maxprintline
.. os_concat ..
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list