mirror of
https://github.com/wassname/ray.git
synced 2026-07-11 04:42:27 +08:00
Fix copy to workspace (#9400)
This commit is contained in:
+4
-5
@@ -118,8 +118,8 @@ def copy_to_workspace(name, srcs, dstdir = ""):
|
||||
for f in {locations}; do
|
||||
rm -f -- {dstdir}$${{f##*/}}
|
||||
cp -f -- "$$f" {dstdir}
|
||||
echo $$f {dstdir}$${{f##*/}}
|
||||
done > $@
|
||||
done
|
||||
date > $@
|
||||
""".format(
|
||||
locations = src_locations,
|
||||
dstdir = "." + ("/" + dstdir.replace("\\", "/")).rstrip("/") + "/",
|
||||
@@ -131,10 +131,9 @@ def copy_to_workspace(name, srcs, dstdir = ""):
|
||||
) && (
|
||||
for %f in ({locations}) do @(
|
||||
(if exist {dstdir}%~nxf del /f /q {dstdir}%~nxf) &&
|
||||
copy /B /Y %f {dstdir} >NUL &&
|
||||
(echo %f {dstdir}%~nxf)
|
||||
copy /B /Y %f {dstdir} >NUL
|
||||
)
|
||||
) > $@
|
||||
) && >$@ echo %TIME%
|
||||
""".replace("\r", "").replace("\n", " ").format(
|
||||
locations = src_locations,
|
||||
dstdir = "." + ("\\" + dstdir.replace("/", "\\")).rstrip("\\") + "\\",
|
||||
|
||||
Reference in New Issue
Block a user