From eb4319beafedc5ea8541d06e0db30309af96eced Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 15 Jan 2021 09:32:35 +0900 Subject: [PATCH] extlibs.rb: make patch command selectable [ci skip] Some Windows ports fail an assertion on patch files with LF EOL code. MSys2 patch.exe 2.7.6 seems fine, at least. --- tool/extlibs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/extlibs.rb b/tool/extlibs.rb index 8a9c5a8fd0..5e8628cb63 100755 --- a/tool/extlibs.rb +++ b/tool/extlibs.rb @@ -90,7 +90,7 @@ class ExtLibs $stdout.puts "applying #{patch} under #{dest}" $stdout.flush end - Process.wait(Process.spawn("patch", "-d", dest, "-i", patch, *args)) + Process.wait(Process.spawn(ENV.fetch("PATCH", "patch"), "-d", dest, "-i", patch, *args)) $?.success? or raise "failed to patch #{patch}" end