[前][次][番号順一覧][スレッド一覧]

ruby-changes:57462

From: Nobuyoshi <ko1@a...>
Date: Sun, 1 Sep 2019 23:23:33 +0900 (JST)
Subject: [ruby-changes:57462] Nobuyoshi Nakada: b578c63f83 (master): Resolve symlinks to cache directory under gems

https://git.ruby-lang.org/ruby.git/commit/?id=b578c63f83

From b578c63f8398d4203c27a012f60b99d14910007d Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 1 Sep 2019 18:15:02 +0900
Subject: Resolve symlinks to cache directory under gems


diff --git a/tool/make-snapshot b/tool/make-snapshot
index 6306f0c..ebf926f 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -423,6 +423,10 @@ update-gems: https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L423
 $(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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]