mirror of
https://github.com/rubyjs/libv8
synced 2023-03-27 23:21:48 -04:00
Small fix to the patch task
This commit is contained in:
parent
552afe2fcd
commit
559f50efeb
1 changed files with 2 additions and 2 deletions
4
Rakefile
4
Rakefile
|
@ -28,11 +28,11 @@ end
|
|||
desc "apply the libv8 gem patches to the vendored v8 source"
|
||||
task :patch do
|
||||
patch_file = File.open "#{V8_Source}/.patches_applied", 'a+'
|
||||
available_patches = Dir.glob 'patches/*.patch'
|
||||
available_patches = Dir.glob('patches/*.patch').sort
|
||||
applied_patches = IO.readlines(patch_file).map(&:chomp)
|
||||
|
||||
(available_patches - applied_patches).each do |patch|
|
||||
sh "patch -p1 -d vendor/v8 < #{patch}"
|
||||
sh "patch -p1 -N -d vendor/v8 < #{patch}"
|
||||
patch_file.puts patch
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue