Install builder: remove target file before copying to avoid errors due to overwriting read-only files - close #123

This commit is contained in:
josh committed 2021-02-23 15:20:59 -05:00
1 parent b970490de2
commit b92360d4e2
3 files changed
+20

No files matched your search

+1
View File
@@ -47,6 +47,7 @@ module Rscons
printed_message = true
end
cache.mkdir_p(File.dirname(dest))
FileUtils.rm_f(dest)
FileUtils.cp(src, dest, :preserve => true)
end
cache.register_build(dest, :Copy, [src], env)