[latex3-commits] [l3svn] 01/02: l3build: copy recursively
noreply at latex-project.org
noreply at latex-project.org
Thu Sep 3 10:42:16 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 3b95dbf5f603eb8624389c17a4079e4843f7f9dc
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 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index 891e3f0..7eddbf1 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -412,11 +412,11 @@ function cp(glob, source, dest)
local source = source .. "/" .. i
if os_windows then
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
- os.execute("cp -f " .. source .. " " .. dest)
+ os.execute("cp -rf " .. source .. " " .. dest)
end
end
end
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list