summaryrefslogtreecommitdiff
path: root/tool/make-snapshot
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-13 10:09:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-13 10:09:43 +0000
commitf67864636ddc33ce45cbdb7bb2d75fabca2d2dbb (patch)
tree6903fcd18c1ae75841090b188eed4c5e6da221d1 /tool/make-snapshot
parent944ff17f8a64092c80131afe2d0ce467b3cacce4 (diff)
make-snapshot: SHA512
* tool/make-snapshot (package): add SHA512. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-xtool/make-snapshot7
1 files changed, 4 insertions, 3 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index c6d4449..0414c1a 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -27,6 +27,7 @@ each versions may be followed by optional @revision.
USAGE
end
+DIGESTS = %w[MD5 SHA256 SHA512]
PACKAGES = {
"bzip" => %w".tar.bz2 bzip2 -c",
"gzip" => %w".tar.gz gzip -c",
@@ -325,9 +326,9 @@ revisions.collect {|rev| package(rev, destdir)}.flatten.each do |name|
sha = Digest::SHA256.hexdigest str
puts "* #{name}"
puts " SIZE: #{str.bytesize} bytes"
- puts " MD5: #{md5}"
- puts " SHA256: #{sha}"
- puts
+ DIGESTS.each do |alg|
+ printf " %-8s%s\n", "#{alg}:", Digest.const_get(alg).hexdigest(str)
+ end
end
exit false if !success