From 5ec94ff7400c812b4e662560271540bc5690d307 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 26 Dec 2022 13:17:31 +0900 Subject: Generate parser-text.rb of racc when sync it --- tool/sync_default_gems.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tool') diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 15f651ca06..e918f02002 100755 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -302,6 +302,15 @@ module SyncDefaultGems `git checkout ext/strscan/depend` when "racc" rm_rf(%w[lib/racc lib/racc.rb ext/racc test/racc]) + parser_files = %w[ + lib/racc/parser-text.rb + ] + Dir.chdir(upstream) do + `bundle install` + parser_files.each do |file| + `bundle exec rake #{file}` + end + end cp_r(Dir.glob("#{upstream}/lib/racc*"), "lib") mkdir_p("ext/racc/cparse") cp_r(Dir.glob("#{upstream}/ext/racc/cparse/*"), "ext/racc/cparse") -- cgit v1.2.1