mirror of
https://github.com/vale981/ray
synced 2025-03-04 17:41:43 -05:00
[WINDOWS] remove complicated dos batch script that sometimes fails (#20670)
This commit is contained in:
parent
2b5ad4a3c0
commit
85519fc3f6
1 changed files with 0 additions and 15 deletions
|
@ -101,7 +101,6 @@ def copy_to_workspace(name, srcs, dstdir = ""):
|
|||
name = name,
|
||||
srcs = srcs,
|
||||
outs = [name + ".out"],
|
||||
# Keep this Bash script equivalent to the batch script below (or take out the batch script)
|
||||
cmd = r"""
|
||||
mkdir -p -- {dstdir}
|
||||
for f in {locations}; do
|
||||
|
@ -113,20 +112,6 @@ def copy_to_workspace(name, srcs, dstdir = ""):
|
|||
locations = src_locations,
|
||||
dstdir = "." + ("/" + dstdir.replace("\\", "/")).rstrip("/") + "/",
|
||||
),
|
||||
# Keep this batch script equivalent to the Bash script above (or take out the batch script)
|
||||
cmd_bat = """
|
||||
(
|
||||
if not exist {dstdir} mkdir {dstdir}
|
||||
) && (
|
||||
for %f in ({locations}) do @(
|
||||
(if exist {dstdir}%~nxf del /f /q {dstdir}%~nxf) &&
|
||||
copy /B /Y %f {dstdir} >NUL
|
||||
)
|
||||
) && >$@ echo %TIME%
|
||||
""".replace("\r", "").replace("\n", " ").format(
|
||||
locations = src_locations,
|
||||
dstdir = "." + ("\\" + dstdir.replace("/", "\\")).rstrip("\\") + "\\",
|
||||
),
|
||||
local = 1,
|
||||
tags = ["no-cache"],
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue