summaryrefslogtreecommitdiff
path: root/tool/make-snapshot
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-03 12:28:00 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-03 12:28:00 +0900
commite6c4ea22d62c95ce0590849219da505fef5a538e (patch)
treea52e5204d43314b45ec4dc740e9d08b158c6ea9f /tool/make-snapshot
parentb0a7221dcf998d72efe57cd7ab75260d80941109 (diff)
Touch tar file itself to make gz file hash stable
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-xtool/make-snapshot1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 2476df503d..12a1a9f6bf 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -521,6 +521,7 @@ after-update::
print "creating tarball... #{tarball}"
if tar_create(tarball, v)
puts $colorize.pass(" done")
+ File.utime(modified, modified, tarball) if modified
next if tarball == file
else
puts $colorize.fail(" failed")