summaryrefslogtreecommitdiff
path: root/tool/make-snapshot
diff options
context:
space:
mode:
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-xtool/make-snapshot8
1 files changed, 8 insertions, 0 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index a4f0dadb37..fbf96fcbbf 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -277,6 +277,14 @@ def package(rev, destdir)
else
system("#{YACC} -o parse.c parse.y")
end
+ if File.file?('gems/bundled_gems') && bundled_gems = File.read('gems/bundled_gems')
+ bundled_gems.split("\n").map(&:split).each do |gem, ver|
+ gem_name = "#{gem}-#{ver}.gem"
+ unless File.file?("gems/#{gem_name}")
+ Downloader.download("https://rubygems.org/downloads/#{gem_name}", gem_name, "gems")
+ end
+ end
+ end
FileUtils.rm_rf(clean)
unless $?.success?
puts " failed"