mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/make-snapshot: do not use sha256sum; use BASERUBY instead
* common.mk (dist): use tool/make-snapshot instead git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7ba5c4e83b
commit
a889f3405f
3 changed files with 18 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
|||
Sat Jun 21 00:45:34 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||
|
||||
* 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@fsij.org>
|
||||
|
||||
* process.c (Init_process): Process::Status#to_int removed.
|
||||
|
|
|
@ -826,8 +826,8 @@ vtune: miniruby$(EXEEXT)
|
|||
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)"
|
||||
|
|
|
@ -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 <<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
|
||||
|
|
Loading…
Reference in a new issue