aboutsummaryrefslogtreecommitdiffstats
path: root/tool/make-snapshot
diff options
context:
space:
mode:
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-xtool/make-snapshot4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index ffd9bcaa88..e87356455b 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -183,7 +183,7 @@ def package(vcs, rev, destdir, tmp = nil)
v = "ruby"
puts "Exporting #{rev}@#{revision}"
exported = tmp ? File.join(tmp, v) : v
- unless vcs.export(revision, url, exported) {|line| print line}
+ unless vcs.export(revision, url, exported, true) {|line| print line}
warn("Export failed")
return
end
@@ -209,7 +209,6 @@ def package(vcs, rev, destdir, tmp = nil)
v = v[0]
end
open("#{v}/revision.h", "wb") {|f| f.puts "#define RUBY_REVISION #{revision}"}
- open("#{v}/.revision.time", "wb") {}
version ||= (versionhdr = IO.read("#{v}/version.h"))[RUBY_VERSION_PATTERN, 1]
version or return
if patchlevel
@@ -310,6 +309,7 @@ def package(vcs, rev, destdir, tmp = nil)
else
system(*%W"#{YACC} -o parse.c parse.y")
end
+ vcs.after_export(".") if exported
FileUtils.rm_rf(clean)
unless $?.success?
puts " failed"