diff options
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-x | tool/make-snapshot | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index fa70d400cb..9e05e66ee9 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -180,10 +180,17 @@ def package(vcs, rev, destdir, tmp = nil) else v = "ruby" puts "Exporting #{rev}@#{revision}" - unless vcs.export(revision, url, tmp ? File.join(tmp, v) : v) {|line| print line} + exported = tmp ? File.join(tmp, v) : v + unless vcs.export(revision, url, exported) {|line| print line} warn("Export failed") return end + if $srcdir + Dir.glob($srcdir + "/{tool/config.{guess,sub},gems/*.gem}") do |file| + puts "copying #{file}" + FileUtils.cp(file, exported + file[$srcdir.size..-1], preserve: true) + end + end end Dir.chdir(tmp) if tmp |