diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-10-03 19:13:05 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-10-03 19:14:49 +0900 |
commit | 8f7fca784a46c4d4213ed7b166945f5b9143062d (patch) | |
tree | 86a257585762c20677a54ede6804ced7abd81d05 /tool/make-snapshot | |
parent | 8142a9b43dfc3e141fd7cb3fc255fc102523f6df (diff) |
make-snapshot: touch updated files after prepared
Align mtime of files updated by `make prepare-package` to make
packages reproducible.
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-x | tool/make-snapshot | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index 6a63305fd6..f9716ddbc0 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -483,6 +483,8 @@ touch-unicode-files: FileUtils.cp_r(orig, dest) end File.utime(modified, modified, *Dir.glob(["tool/config.{guess,sub}", "gems/*.gem", "tool"])) + return unless make.run("prepare-package") + return unless make.run("clean-cache") if modified new_time = modified + 2 touch_all(new_time, "**/*", File::FNM_DOTMATCH) do |name, stat| @@ -490,8 +492,6 @@ touch-unicode-files: end modified = new_time end - return unless make.run("prepare-package") - return unless make.run("clean-cache") print "prerequisites" else system(*%W"#{YACC} -o parse.c parse.y") |