summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/l3build/l3build-file-functions.lua
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-02-25 03:00:58 +0000
committerNorbert Preining <norbert@preining.info>2022-02-25 03:00:58 +0000
commit157cc9e776520d0b7d488317a69a10d4ae4d493b (patch)
treec12e70126efbe1e6c930d2e26223a004b075306e /macros/latex/contrib/l3build/l3build-file-functions.lua
parentdc88afec77f198ebb8774f9c87146f2985e8f156 (diff)
CTAN sync 202202250300
Diffstat (limited to 'macros/latex/contrib/l3build/l3build-file-functions.lua')
-rw-r--r--macros/latex/contrib/l3build/l3build-file-functions.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/macros/latex/contrib/l3build/l3build-file-functions.lua b/macros/latex/contrib/l3build/l3build-file-functions.lua
index 4aa591dd50..ca393335a1 100644
--- a/macros/latex/contrib/l3build/l3build-file-functions.lua
+++ b/macros/latex/contrib/l3build/l3build-file-functions.lua
@@ -1,6 +1,6 @@
--[[
-File l3build-file-functions.lua Copyright (C) 2018-2021 The LaTeX Project
+File l3build-file-functions.lua Copyright (C) 2018-2022 The LaTeX Project
It may be distributed and/or modified under the conditions of the
LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -244,6 +244,11 @@ function cp(glob, source, dest)
) and 0 or 1
end
else
+ -- Ensure we get similar behavior on all platforms
+ if not direxists(dirname(dest)) then
+ errorlevel = mkdir(dirname(dest))
+ if errorlevel ~=0 then return errorlevel end
+ end
errorlevel = execute(
"cp -RLf '" .. p.cwd .. "' '" .. dest .. "'"
) and 0 or 1