ruby-changes:29722
From: akr <ko1@a...>
Date: Thu, 4 Jul 2013 20:40:22 +0900 (JST)
Subject: [ruby-changes:29722] akr:r41774 (trunk): * tool/make-snapshot: Exit with EXIT_FAILURE when it fails.
akr 2013-07-04 20:40:11 +0900 (Thu, 04 Jul 2013) New Revision: 41774 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41774 Log: * tool/make-snapshot: Exit with EXIT_FAILURE when it fails. Modified files: trunk/ChangeLog trunk/tool/make-snapshot Index: ChangeLog =================================================================== --- ChangeLog (revision 41773) +++ ChangeLog (revision 41774) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Jul 4 20:39:20 2013 Tanaka Akira <akr@f...> + + * tool/make-snapshot: Exit with EXIT_FAILURE when it fails. + Thu Jul 4 20:20:23 2013 Tanaka Akira <akr@f...> * bignum.c (maxpow_in_bdigit_dbl): Use tables if available. Index: tool/make-snapshot =================================================================== --- tool/make-snapshot (revision 41773) +++ tool/make-snapshot (revision 41774) @@ -265,8 +265,12 @@ ensure https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L265 FileUtils.rm_rf(v) if v and !$exported and !$keep_temp end +success = true revisions.collect {|rev| package(rev, destdir)}.flatten.each do |name| - name or next + if !name + success = false + next + end str = open(name, "rb") {|f| f.read} md5 = Digest::MD5.hexdigest str sha = Digest::SHA256.hexdigest str @@ -277,4 +281,6 @@ revisions.collect {|rev| package(rev, de https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L281 puts end +exit false if !success + # vim:fileencoding=US-ASCII sw=2 ts=4 noexpandtab ff=unix -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/