[前][次][番号順一覧][スレッド一覧]

ruby-changes:5986

From: nobu <ko1@a...>
Date: Sat, 21 Jun 2008 08:40:02 +0900 (JST)
Subject: [ruby-changes:5986] Ruby:r17494 (trunk): * tool/make-snapshot: fixed digets.

nobu	2008-06-21 08:39:45 +0900 (Sat, 21 Jun 2008)

  New Revision: 17494

  Modified files:
    trunk/ChangeLog
    trunk/tool/make-snapshot

  Log:
    * tool/make-snapshot: fixed digets.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=17494&r2=17493&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/tool/make-snapshot?r1=17494&r2=17493&diff_format=u

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 17493)
+++ ChangeLog	(revision 17494)
@@ -1,3 +1,7 @@
+Sat Jun 21 08:39:43 2008  Nobuyoshi Nakada  <nobu@r...>
+
+	* tool/make-snapshot: fixed digets.
+
 Sat Jun 21 04:36:59 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* ext/bigdecimal/lib/bigdecimal/jacobian.rb (Jacobian::dfdxi):
Index: tool/make-snapshot
===================================================================
--- tool/make-snapshot	(revision 17493)
+++ tool/make-snapshot	(revision 17494)
@@ -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 @@
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]