From 31b679eedf7c47647a1fdf87dcc3418631c0c749 Mon Sep 17 00:00:00 2001 From: Jan Date: Sat, 13 Aug 2022 14:32:01 +0200 Subject: [PATCH] Replace copy file commands with platform independent ones --- tools/scripts/raw.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/scripts/raw.lua b/tools/scripts/raw.lua index 2531b36d..684a129c 100644 --- a/tools/scripts/raw.lua +++ b/tools/scripts/raw.lua @@ -43,7 +43,8 @@ function Raw:project() buildmessage 'Copying rawfile %{file.relpath}' buildcommands { -- 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 { "%{cfg.targetdir}/build/raw/%{file.relpath}"