summaryrefslogtreecommitdiff
path: root/tool/make-snapshot
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-23 13:24:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-23 13:24:33 +0000
commit38938ccaad2656af71752cc5b7fc7d6eb782ca03 (patch)
tree0bb1beda228bd9b1b8683e71289e914c0fe89585 /tool/make-snapshot
parent30fef86b381952b9669a9ed508f19bbead1d5441 (diff)
extlibs.rb: external libraries
* tool/extlibs.rb: download, extract, and patch external libraries. * ext/fiddle/extlibs: libffi-3.2.1 and patch for mswin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-xtool/make-snapshot13
1 files changed, 10 insertions, 3 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 9e05e66..0c24532 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -186,9 +186,15 @@ def package(vcs, rev, destdir, tmp = nil)
return
end
if $srcdir
- Dir.glob($srcdir + "/{tool/config.{guess,sub},gems/*.gem}") do |file|
+ Dir.glob($srcdir + "/{tool/config.{guess,sub},gems/*.gem,.downloaded-cache/*}") do |file|
puts "copying #{file}"
- FileUtils.cp(file, exported + file[$srcdir.size..-1], preserve: true)
+ dest = exported + file[$srcdir.size..-1]
+ FileUtils.mkpath(File.dirname(dest))
+ begin
+ FileUtils.ln(file, dest, force: true)
+ rescue SystemCallError
+ FileUtils.cp(file, dest, preserve: true)
+ end
end
end
end
@@ -280,6 +286,7 @@ def package(vcs, rev, destdir, tmp = nil)
srcdir=. CHDIR=cd NULLCMD=:
PATH_SEPARATOR=#{File::PATH_SEPARATOR}
IFCHANGE=tool/ifchange MAKEDIRS=mkdir\ -p
+ RMALL=rm\ -fr
MINIRUBY=#{miniruby}
RUNRUBY=#{miniruby}
RUBY=#{ENV["RUBY"]}
@@ -289,7 +296,7 @@ def package(vcs, rev, destdir, tmp = nil)
prereq]
IO.popen(cmd, "w") do |f|
f.puts mk
- f.puts "after-update::", "prereq: after-update"
+ f.puts "after-update::", "clean-cache $(CLEAN_CACHE): after-update", "prereq: clean-cache $(CLEAN_CACHE)"
end
clean.push("rbconfig.rb", ".rbconfig.time", "enc.mk")
print "prerequisites"