[latex3-commits] [git/l3build] master: Make sure ren() accounts for leading "./" (cb14494)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Dec 11 13:52:34 CET 2017


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

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

commit cb14494e165dc5d3432285d90186be8d7aa97c0a
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Dec 10 12:30:18 2017 +0000

    Make sure ren() accounts for leading "./"


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

cb14494e165dc5d3432285d90186be8d7aa97c0a
 l3build.lua |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/l3build.lua b/l3build.lua
index 7f9951a..659da10 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -743,6 +743,8 @@ end
 function ren(dir, source, dest)
   local dir = dir .. "/"
   if os_type == "windows" then
+    local source = gsub(source, "^%.+/", "")
+    local dest = gsub(dest, "^%.+/", "")
     return execute("ren " .. unix_to_win(dir) .. source .. " " .. dest)
   else
     return execute("mv " .. dir .. source .. " " .. dir .. dest)





More information about the latex3-commits mailing list