1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* tool/make-snapshot: fixed digets.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-06-20 23:39:45 +00:00
parent b8b6c4894a
commit 50d48fcfc8
2 changed files with 10 additions and 7 deletions

View file

@ -1,3 +1,7 @@
Sat Jun 21 08:39:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* tool/make-snapshot: fixed digets.
Sat Jun 21 04:36:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/bigdecimal/lib/bigdecimal/jacobian.rb (Jacobian::dfdxi):

View file

@ -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