* 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> Sat Jun 21 04:36:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/bigdecimal/lib/bigdecimal/jacobian.rb (Jacobian::dfdxi): * ext/bigdecimal/lib/bigdecimal/jacobian.rb (Jacobian::dfdxi):

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
nLC_ALL=C LANG=C LC_ALL=C LANG=C
SVNURL=http://svn.ruby-lang.org/repos/ruby SVNURL=http://svn.ruby-lang.org/repos/ruby
export LC_ALL LANG export LC_ALL LANG
: ${VPATH=include/ruby} ${YACC=bison} ${BASERUBY=ruby} ${RUBY=ruby} ${MV=mv} ${MINIRUBY=ruby} : ${VPATH=include/ruby} ${YACC=bison} ${BASERUBY=ruby} ${RUBY=ruby} ${MV=mv} ${MINIRUBY=ruby}
@ -92,15 +92,14 @@ for rev; do
done done
rm -fr $v rm -fr $v
done done
for file in $files; do ${BASERUBY} -r digest -e '
${BASERUBY} -r digest/md5 -r digest/sha2 <<EOF ARGV.each do |name|
name = "$file" str = open(name, "rb") {|f| f.read}
str = ARGF.read
md5 = Digest::MD5.hexdigest str md5 = Digest::MD5.hexdigest str
sha = Digest::SHA256.hexdigest str sha = Digest::SHA256.hexdigest str
printf "MD5(%s)= %s\nSHA256(%s)= %s\nSIZE(%s)= %s\n\n", printf "MD5(%s)= %s\nSHA256(%s)= %s\nSIZE(%s)= %s\n\n",
name, md5, name, md5,
name, sha, name, sha,
name, str.size name, str.size
EOF end
done ' $files