summaryrefslogtreecommitdiff
path: root/tool/sync_default_gems.rb
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-08-25 17:23:15 -0400
committerKevin Newton <kddnewton@gmail.com>2023-08-25 18:20:51 -0400
commitaea7e9182835af4c9e1857038f03fc37a1474416 (patch)
tree8358ae263707cdab72676d8028a3835b274874e8 /tool/sync_default_gems.rb
parentb2d1c720ece67b110ab4ade6b8c9f3b640216c8a (diff)
Fix sync script for YARP
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8298
Diffstat (limited to 'tool/sync_default_gems.rb')
-rwxr-xr-xtool/sync_default_gems.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 29107fb48f..1cb58469c8 100755
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -405,7 +405,7 @@ module SyncDefaultGems
# Run the YARP templating scripts
cp_r("#{upstream}/ext/yarp", "yarp")
cp_r("#{upstream}/lib/.", "lib")
- cp_r("#{upstream}/test", "test/yarp")
+ cp_r("#{upstream}/test/yarp", "test")
cp_r("#{upstream}/src/.", "yarp")
cp_r("#{upstream}/yarp.gemspec", "lib/yarp")
@@ -415,10 +415,7 @@ module SyncDefaultGems
cp_r("#{upstream}/config.yml", "yarp/")
cp_r("#{upstream}/templates", "yarp/")
- rm_f("yarp/config.h")
- File.write("yarp/config.h", "#include \"ruby/config.h\"\n")
rm("yarp/extconf.rb")
-
mv("yarp_init.c", "yarp/")
else
sync_lib gem, upstream