summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-20 23:39:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-20 23:39:45 +0000
commit0574604088c3d7bd3c38fbcdf65a136573b7b7b6 (patch)
treeab94fd5ffe328612ca6665b055487f54091609e8
parent49d8bcc639b3727d8d3db279c95db31d7ca5df88 (diff)
downloadruby-0574604088c3d7bd3c38fbcdf65a136573b7b7b6.tar.gz
ruby-0574604088c3d7bd3c38fbcdf65a136573b7b7b6.tar.xz
ruby-0574604088c3d7bd3c38fbcdf65a136573b7b7b6.zip
* tool/make-snapshot: fixed digets.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rwxr-xr-xtool/make-snapshot13
2 files changed, 10 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 0c87dfba5..6a781eb52 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 81b3b03b7..1941d7571 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