summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-28 08:21:57 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-28 08:21:57 +0000
commit2e376a1b96dffe97895549df7ffba4ee57fdd6ac (patch)
tree065a0c0d2b7e70effdd3f58b0769dec902e7ff0f /tool
parente3e645f43a3a2382a4fc38a5420e89b351c5b0c1 (diff)
* tool/make-snapshot.rb: merged from ruby_1_9_1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/make-snapshot11
1 files changed, 7 insertions, 4 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 134a6e6d4c3..0f0a31fb3eb 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -197,11 +197,14 @@ end
revisions.collect {|rev| package(rev, destdir)}.flatten.each do |name|
name or next
- str = open(name, "rb") {|f| f.read}
+ str = open(name, "rb:binary") {|f| f.read}
md5 = Digest::MD5.hexdigest str
sha = Digest::SHA256.hexdigest str
- puts "MD5(#{name})= #{md5}"
- puts "SHA256(#{name})= #{sha}"
- puts "SIZE(name)= #{str.bytesize}"
+ puts "* #{name}"
+ puts " SIZE: #{str.bytesize} bytes"
+ puts " MD5: #{md5}"
+ puts " SHA256: #{sha}"
puts
end
+
+# vim:fileencoding=US-ASCII sw=2 ts=4 noexpandtab ff=unix