ruby-changes:54865
From: nobu <ko1@a...>
Date: Thu, 14 Feb 2019 00:34:12 +0900 (JST)
Subject: [ruby-changes:54865] nobu:r67070 (trunk): Parenthesize `for` to ignore errors
nobu 2019-02-14 00:34:08 +0900 (Thu, 14 Feb 2019) New Revision: 67070 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67070 Log: Parenthesize `for` to ignore errors Modified files: trunk/win32/Makefile.sub Index: win32/Makefile.sub =================================================================== --- win32/Makefile.sub (revision 67069) +++ win32/Makefile.sub (revision 67070) @@ -1192,7 +1192,7 @@ ext/clean.mk ext/distclean.mk ext/realcl https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L1192 $(Q)if exist $(EXTS_MK) $(MAKE) -k -f $(EXTS_MK) top_srcdir=$(srcdir) $(*F) ext/clean gems/clean ext/distclean gems/distclean ext/realclean gems/realclean:: - $(Q)cd $(@D) && for /R $(EXTS) %I in (.) \ + $(Q)cd $(@D) 2>nul && (for /R $(EXTS) %I in (.) \ do $(Q)if exist %I\Makefile ( \ cd %I && ( \ call set n=%I && \ @@ -1202,11 +1202,11 @@ ext/clean gems/clean ext/distclean gems/ https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L1202 $(MAKE) $(MFLAGS) $(@F) & \ cd %CD% & \ $(RMDIRS) %I \ - ) ) || @ + ))) || @ ext/distclean gems/distclean ext/realclean gems/realclean:: - $(Q)cd $(@D) && for /R $(EXTS) %I in (exts.mk*) \ - do $(Q)(del %I & rmdir %~dpI) + $(Q)cd $(@D) 2>nul && (for /R $(EXTS) %I in (exts.mk*) \ + do $(Q)(del %I & rmdir %~dpI)) || @ -$(Q)rmdir $(@D) 2> nul || @ clean-enc distclean-enc realclean-enc: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/