ruby-changes:5983
From: shyouhei <ko1@a...>
Date: Sat, 21 Jun 2008 01:02:40 +0900 (JST)
Subject: [ruby-changes:5983] Ruby:r17491 (trunk): * tool/make-snapshot: do not use sha256sum; use BASERUBY instead
shyouhei 2008-06-21 01:02:21 +0900 (Sat, 21 Jun 2008) New Revision: 17491 Modified files: trunk/ChangeLog trunk/common.mk trunk/tool/make-snapshot Log: * tool/make-snapshot: do not use sha256sum; use BASERUBY instead * common.mk (dist): use tool/make-snapshot instead http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=17491&r2=17490&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/tool/make-snapshot?r1=17491&r2=17490&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/common.mk?r1=17491&r2=17490&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 17490) +++ ChangeLog (revision 17491) @@ -1,3 +1,9 @@ +Sat Jun 21 00:45:34 2008 URABE Shyouhei <shyouhei@r...> + + * tool/make-snapshot: do not use sha256sum; use BASERUBY instead + + * common.mk (dist): use tool/make-snapshot instead + Fri Jun 20 16:34:14 2008 Tanaka Akira <akr@f...> * process.c (Init_process): Process::Status#to_int removed. Index: common.mk =================================================================== --- common.mk (revision 17490) +++ common.mk (revision 17491) @@ -826,8 +826,8 @@ vtl view -hf -mn miniruby$(EXEEXT) -sum -sort -cd vtl view -ha -mn miniruby$(EXEEXT) -sum -sort -cd | $(RUNRUBY) $(srcdir)/tool/vtlh.rb > ha.lines -dist: $(PROGRAM) - $(RUNRUBY) $(srcdir)/distruby.rb +dist: $(PREP) $(PROGRAM) + $(SHELL) $(srcdir)/tool/make-snapshot . $(TARNAME) up: @$(VCS) up "$(srcdir)" Index: tool/make-snapshot =================================================================== --- tool/make-snapshot (revision 17490) +++ tool/make-snapshot (revision 17491) @@ -93,9 +93,14 @@ rm -fr $v done for file in $files; do - md5=$(md5sum $file) - sha256=$(sha256sum $file) - echo "MD5(${file##*/})= ${md5%% *}" - echo "SHA256(${file##*/})= ${sha256%% *}" - echo "SIZE(${file##*/})= `find $file -printf %s`" + ${BASERUBY} -r digest/md5 -r digest/sha2 <<EOF + name = "$file" + str = ARGF.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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/