[latex3-commits] [l3svn] 01/02: l3build: copy recursively

noreply at latex-project.org noreply at latex-project.org
Thu Nov 5 14:54:38 CET 2015


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

joseph pushed a commit to branch master
in repository l3svn.

commit e7451efd4b124be0c8849a2dc5703d614ba48c0f
Author: XZS <d.f.fischer at web.de>
Date:   Tue Sep 1 01:03:41 2015 +0200

    l3build: copy recursively
    
    This allows for the inclusion of whole directories when specifying
    supportfiles and the like.
    
    For windows, xcopy is first able to copy recursively, enabled by /e. The
    /i flag designates that the target is a directory. Depending on xcopy
    instead of copy should not be too restrictive as it is available since
    MS-DOS 3.3.
---
 l3build/l3build.lua |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index a3f6a16..e52056b 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -434,11 +434,11 @@ function cp(glob, source, dest)
     local source = source .. "/" .. i
     if os_windows then
       errorlevel = os.execute(
-        "copy /y " .. unix_to_win(source) .. " "
-           .. unix_to_win(dest) .. " > nul"
-      )
+          "xcopy /y /e /i" .. unix_to_win(source)
+            .. " " .. unix_to_win(dest) .. " > nul"
+        )
     else
-      errorlevel = os.execute("cp -f " .. source .. " " .. dest)
+      errorlevel = os.execute("cp -rf " .. source .. " " .. dest)
     end
     if errorlevel ~=0 then
       return errorlevel

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


More information about the latex3-commits mailing list