Replace copy file commands with platform independent ones

This commit is contained in:
Jan 2022-08-13 14:32:01 +02:00
parent 886bcfeaf8
commit 31b679eedf

View File

@ -43,7 +43,8 @@ function Raw:project()
buildmessage 'Copying rawfile %{file.relpath}' buildmessage 'Copying rawfile %{file.relpath}'
buildcommands { buildcommands {
-- Relpath contains two .. so build/raw is getting reverted in the target path -- Relpath contains two .. so build/raw is getting reverted in the target path
"cp \"%{file.relpath}\" \"%{cfg.targetdir}/build/raw/%{file.relpath}\"" "{MKDIR} \"%{cfg.targetdir}/build/raw/%{file.reldirectory}\"",
"{COPYFILE} \"%{file.relpath}\" \"%{cfg.targetdir}/build/raw/%{file.relpath}\""
} }
buildoutputs { buildoutputs {
"%{cfg.targetdir}/build/raw/%{file.relpath}" "%{cfg.targetdir}/build/raw/%{file.relpath}"