[latex3-commits] [l3svn] 01/02: Step version in README files

noreply at latex-project.org noreply at latex-project.org
Thu Oct 8 09:48:11 CEST 2015


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

commit f894633b7824fba09802d287819a59275a87ce3a
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Oct 8 08:37:43 2015 +0100

    Step version in README files
---
 build-config.lua   |   14 ++++++++++----
 l3kernel/build.lua |    2 +-
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/build-config.lua b/build-config.lua
index 3b489d2..7e514ea 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -8,6 +8,7 @@ cmdchkfiles     = {"*.dtx"}
 checkengines    = {"pdftex", "xetex", "luatex", "ptex", "uptex"}
 checksuppfiles  = {"minimal.cls", "regression-test.cfg"}
 unpacksuppfiles = {"docstrip.tex"}
+versionfiles    = {"*.dtx", "README.md"}
 
 packtdszip  = true
 
@@ -32,14 +33,19 @@ function update_line(line, date, version)
   end
   -- Update the interlock
   if string.match(
-      line, "^\\RequirePackage{expl3}%[%d%d%d%d/%d%d/%d%d%]$"
-    ) then
+    line, "^\\RequirePackage{expl3}%[%d%d%d%d/%d%d/%d%d%]$"
+  ) then
     line = "\\RequirePackage{expl3}[" .. date .. "]"
   end
   if string.match(
-      line, "^%%<package>\\@ifpackagelater{expl3}{%d%d%d%d/%d%d/%d%d}$"
-    ) then
+    line, "^%%<package>\\@ifpackagelater{expl3}{%d%d%d%d/%d%d/%d%d}$"
+  ) then
     line = "%<package>\\@ifpackagelater{expl3}{" .. date .. "}"
   end
+  if string.match(
+    line, "^Release %d%d%d%d/%d%d/%d%d %(r%d%d%d%d%)$"
+  ) then
+    line = "Release " .. date .. " (r" .. version .. ")"
+  end
   return line
 end
diff --git a/l3kernel/build.lua b/l3kernel/build.lua
index 5db4f91..0092220 100644
--- a/l3kernel/build.lua
+++ b/l3kernel/build.lua
@@ -36,7 +36,7 @@ typesetfiles =
   }
 typesetskipfiles = {"source3-body.tex"}
 unpackfiles      = {"l3.ins"}
-versionfiles     = {"expl3.dtx"}
+versionfiles     = {"expl3.dtx", "README.md"}
 
 -- No deps other than the test system
 checkdeps   = {maindir .. "/l3build"}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list