Skip to content

Commit

Permalink
Skip README rename when this has no extension (fixes #388)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Oct 24, 2024
1 parent 97830cc commit 5d3b67e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion l3build-ctan.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d3b67e

Please sign in to comment.