diff options
Diffstat (limited to 'Master/texmf-dist/scripts/l3build/l3build-file-functions.lua')
-rw-r--r-- | Master/texmf-dist/scripts/l3build/l3build-file-functions.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Master/texmf-dist/scripts/l3build/l3build-file-functions.lua b/Master/texmf-dist/scripts/l3build/l3build-file-functions.lua index 4aa591dd50d..ca393335a18 100644 --- a/Master/texmf-dist/scripts/l3build/l3build-file-functions.lua +++ b/Master/texmf-dist/scripts/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 |