From 9ea1281a7632dfa9b4ada9348ca4d6347616b70d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 28 Apr 2023 15:47:59 +0900 Subject: Add sync_tool.rake [ci skip] --- tool/rakelib/sync_tool.rake | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tool/rakelib/sync_tool.rake (limited to 'tool/rakelib') diff --git a/tool/rakelib/sync_tool.rake b/tool/rakelib/sync_tool.rake new file mode 100644 index 0000000000..ee69efffcb --- /dev/null +++ b/tool/rakelib/sync_tool.rake @@ -0,0 +1,15 @@ +task :sync_tool, [:from] do |t, from: (File.identical?(__dir__, "rakelib") ? "../ruby/tool" : __dir__)| + require 'fileutils' + + { + "rakelib/sync_tool.rake" => "rakelib", + "lib/core_assertions.rb" => "test/lib", + "lib/envutil.rb" => "test/lib", + "lib/find_executable.rb" => "test/lib", + "lib/helper.rb" => "test/lib", + }.each do |src, dest| + FileUtils.mkpath(dest) + FileUtils.cp "#{from}/#{src}", dest + rescue Errno::ENOENT + end +end -- cgit v1.2.1