summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-03 16:47:57 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-03 19:09:16 +0900
commit47d143be17819bed6dda08e24069d755ef34530b (patch)
tree3db4381826876552b875571a6d8a882416864ae7 /tool
parentb7ae26e2eec9efb826e4a2d913a67341531c6342 (diff)
make-snapshot: copy cache files instead of linking
To get rid of setting mode and mtime of the original cache files.
Diffstat (limited to 'tool')
-rwxr-xr-xtool/make-snapshot7
1 files changed, 1 insertions, 6 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index da312c3681..436863b185 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -289,13 +289,8 @@ def package(vcs, rev, destdir, tmp = nil)
dest = exported + file[$srcdir.size..-1]
FileUtils.mkpath(File.dirname(dest))
begin
- FileUtils.ln(file, dest, force: true)
- next unless File.symlink?(dest)
- File.unlink(dest)
- rescue SystemCallError
- end
- begin
FileUtils.cp_r(file, dest)
+ FileUtils.chmod_R("u=rwX,go=rX", dest)
rescue SystemCallError
end
end