summaryrefslogtreecommitdiff
path: root/tool/sync_default_gems.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-08-17 14:39:04 -0700
committerGitHub <noreply@github.com>2023-08-17 14:39:04 -0700
commit67b5f63e97eff714d2a028b593ac602515cdc1f1 (patch)
tree222d91e6a2c5a1b5db149329fe4ea0a7355fdd38 /tool/sync_default_gems.rb
parent5d48825d55bedd1d0d9f975efa01cfc443b2451c (diff)
Render YARP templates in the build process (#8228)
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'tool/sync_default_gems.rb')
-rwxr-xr-xtool/sync_default_gems.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index fb768c7a41..97bcfd2cdf 100755
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -403,7 +403,6 @@ module SyncDefaultGems
rm_rf(%w[test/yarp yarp])
# Run the YARP templating scripts
- system("ruby #{upstream}/templates/template.rb")
cp_r("#{upstream}/ext/yarp", "yarp")
cp_r("#{upstream}/lib/.", "lib")
cp_r("#{upstream}/test", "test/yarp")
@@ -420,6 +419,9 @@ module SyncDefaultGems
cp_r("#{upstream}/include/yarp/.", "yarp")
cp_r("#{upstream}/include/yarp.h", "yarp")
+ 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")
@@ -456,7 +458,6 @@ module SyncDefaultGems
|configure\.ac
|rakelib\/.*
|rust\/.*
- |templates\/.*
|test\/lib\/.*
|tasks\/.*
|ext\/yarp\/extconf\.rb