diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-20 23:39:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-20 23:39:45 +0000 |
commit | 50d48fcfc889361483af53d14f69d38457c2fe2d (patch) | |
tree | ab94fd5ffe328612ca6665b055487f54091609e8 /tool | |
parent | b8b6c4894acd51b9f21a2a792ef0a710d2c5dc35 (diff) | |
download | ruby-50d48fcfc889361483af53d14f69d38457c2fe2d.tar.gz |
* tool/make-snapshot: fixed digets.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/make-snapshot | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index 81b3b03b70..1941d7571a 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -1,6 +1,6 @@ #!/bin/bash -nLC_ALL=C LANG=C +LC_ALL=C LANG=C SVNURL=http://svn.ruby-lang.org/repos/ruby export LC_ALL LANG : ${VPATH=include/ruby} ${YACC=bison} ${BASERUBY=ruby} ${RUBY=ruby} ${MV=mv} ${MINIRUBY=ruby} @@ -92,15 +92,14 @@ for rev; do done rm -fr $v done -for file in $files; do - ${BASERUBY} -r digest/md5 -r digest/sha2 <<EOF - name = "$file" - str = ARGF.read +${BASERUBY} -r digest -e ' + ARGV.each do |name| + str = open(name, "rb") {|f| f.read} md5 = Digest::MD5.hexdigest str sha = Digest::SHA256.hexdigest str printf "MD5(%s)= %s\nSHA256(%s)= %s\nSIZE(%s)= %s\n\n", name, md5, name, sha, name, str.size -EOF -done + end +' $files |