aboutsummaryrefslogtreecommitdiffstats
path: root/tool/make-snapshot
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-01 18:15:02 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-01 23:22:49 +0900
commitb578c63f8398d4203c27a012f60b99d14910007d (patch)
tree0683fc9f438474c0a366942254bb44a61012b324 /tool/make-snapshot
parentff7c95dfd9b6aa1b4a83c18172e2845f7e6a4e7f (diff)
downloadruby-b578c63f8398d4203c27a012f60b99d14910007d.tar.gz
Resolve symlinks to cache directory under gems
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-xtool/make-snapshot4
1 files changed, 4 insertions, 0 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 6306f0c9d5..ebf926f77f 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -423,6 +423,10 @@ update-gems:
$(UNICODE_SRC_DATA_DIR)/.unicode-tables.time:
touch-unicode-files:
APPEND
+ mk << <<-APPEND
+after-update::
+\t$(Q) $(RUNRUBY) -C gems -e 'Dir.glob("*") {|f|File.rename(File.readlink(f), f) rescue nil}'
+ APPEND
open(clean.add("Makefile"), "w") do |f|
f.puts mk
end