[前][次][番号順一覧][スレッド一覧]

ruby-changes:16621

From: nobu <ko1@a...>
Date: Sun, 11 Jul 2010 17:02:16 +0900 (JST)
Subject: [ruby-changes:16621] Ruby:r28615 (trunk): * Makefile.in ({,dist-,real-}clean-ext): should also omit

nobu	2010-07-11 17:01:59 +0900 (Sun, 11 Jul 2010)

  New Revision: 28615

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=28615

  Log:
    * Makefile.in ({,dist-,real-}clean-ext): should also omit
      semicolon when omitting "in WORDS" of FOR-statement.
    
    * tool/rmdirs: ditto.

  Modified files:
    trunk/ChangeLog
    trunk/Makefile.in
    trunk/tool/rmdirs

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 28614)
+++ ChangeLog	(revision 28615)
@@ -1,8 +1,7 @@
-Sun Jul 11 15:36:20 2010  Nobuyoshi Nakada  <nobu@r...>
+Sun Jul 11 17:01:57 2010  Nobuyoshi Nakada  <nobu@r...>
 
-	* Makefile.in ({,dist-,real-}clean-ext): omission of "in WORDS" of
-	  FOR-statement is not allowed in /bin/sh on Solaris.  fore-ported
-	  r28609 from 1.9.2.
+	* Makefile.in ({,dist-,real-}clean-ext): should also omit
+	  semicolon when omitting "in WORDS" of FOR-statement.
 
 	* tool/rmdirs: ditto.
 
Index: Makefile.in
===================================================================
--- Makefile.in	(revision 28614)
+++ Makefile.in	(revision 28615)
@@ -259,11 +259,11 @@
 clean-ext distclean-ext realclean-ext::
 	@cd ext 2>/dev/null || exit 0; set dummy `echo "${EXTS}" | tr , ' '`; shift; \
 	test "$$#" = 0 && set .; \
-	set dummy `for dir in "$$@"; do \
+	set dummy `for dir do \
 	    find $$dir -name Makefile | sed 's:^\./::;s:/Makefile$$:~:' | sort | sed 's:~$$::'; \
 	done`; shift; \
 	cd ..; \
-	for dir in "$$@"; do \
+	for dir do \
 	    echo $(@:-ext=)ing "$$dir"; \
 	    (cd "ext/$$dir" && exec $(MAKE) $(MFLAGS) $(@:-ext=)) && \
 	    case "$@" in \
Index: tool/rmdirs
===================================================================
--- tool/rmdirs	(revision 28614)
+++ tool/rmdirs	(revision 28615)
@@ -1,5 +1,5 @@
 #!/bin/sh
-for dir in "$@"; do
+for dir do
     while rmdir "$dir" >/dev/null 2>&1 &&
           parent=`expr "$dir" : '\(.*\)/[^/][^/]*'`; do
         case "$parent" in

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]