mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
944ff17f8a
commit
f67864636d
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue