From bd0d158c5761e46c01647997dadd50a6e4b0d643 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Fri, 20 Jun 2008 16:02:21 +0000 Subject: * tool/make-snapshot: do not use sha256sum; use BASERUBY instead * common.mk (dist): use tool/make-snapshot instead git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/make-snapshot | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'tool/make-snapshot') diff --git a/tool/make-snapshot b/tool/make-snapshot index 92a30323f..81b3b03b7 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -93,9 +93,14 @@ for rev; do 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 <