[latex3-commits] [latex3/l3build] main: Skip README rename when this has no extension (fixes #388) (5d3b67e)

github at latex-project.org github at latex-project.org
Thu Oct 24 15:16:45 CEST 2024


Repository : https://github.com/latex3/l3build
On branch  : main
Link       : https://github.com/latex3/l3build/commit/5d3b67edd0b858160bdc8092ce7fbba990cc9c14

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

commit 5d3b67edd0b858160bdc8092ce7fbba990cc9c14
Author: Joseph Wright <joseph at texdev.net>
Date:   Thu Oct 24 14:16:45 2024 +0100

    Skip README rename when this has no extension (fixes #388)


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

5d3b67edd0b858160bdc8092ce7fbba990cc9c14
 CHANGELOG.md     | 3 +++
 l3build-ctan.lua | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2e84b11..6af7221 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,9 @@ this project uses date-based 'snapshot' version identifiers.
 
 ## [Unreleased]
 
+### Fixed
+- Skip README rename when this has no extension (issue \#388)
+
 ## [2024-10-16]
 
 ### Added
diff --git a/l3build-ctan.lua b/l3build-ctan.lua
index 167cd33..5b1d1c4 100644
--- a/l3build-ctan.lua
+++ b/l3build-ctan.lua
@@ -148,7 +148,8 @@ function ctan()
       end
     end
     -- Rename README if necessary
-    if ctanreadme ~= "" and not match(lower(ctanreadme),"^readme%.%w+") then
+    if ctanreadme ~= "" and not match(lower(ctanreadme),"^readme$")
+      not match(lower(ctanreadme),"^readme%.%w+") then
       local newfile = "README." .. match(ctanreadme,"%.(%w+)$")
       for _,dir in pairs({ctandir .. "/" .. ctanpkg,
         tdsdir .. "/doc/" .. tdsroot .. "/" .. bundle}) do





More information about the latex3-commits mailing list.