summaryrefslogtreecommitdiff
path: root/tool/sync_default_gems.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2022-12-26 13:17:31 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-12-26 13:17:33 +0900
commit5ec94ff7400c812b4e662560271540bc5690d307 (patch)
treef535f06f8472a5a44b467fb0e7d8cebe6bdbf611 /tool/sync_default_gems.rb
parent1066d42ca8d9e55b415ad4d6abbe0c514a5d4add (diff)
Generate parser-text.rb of racc when sync it
Diffstat (limited to 'tool/sync_default_gems.rb')
-rwxr-xr-xtool/sync_default_gems.rb9
1 files changed, 9 insertions, 0 deletions
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")