diff --git a/ChangeLog b/ChangeLog index d2f83b5b207d9e..de95a04b845d5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,7 @@ -Sun Jul 11 15:36:20 2010 Nobuyoshi Nakada +Sun Jul 11 17:01:57 2010 Nobuyoshi Nakada - * 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. diff --git a/Makefile.in b/Makefile.in index ee2f2b5e1f7f83..02cfa1c3e7d7b5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -259,11 +259,11 @@ distclean-rdoc: 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 \ diff --git a/tool/rmdirs b/tool/rmdirs index 1dde99f5471099..6dcf984df6df41 100755 --- a/tool/rmdirs +++ b/tool/rmdirs @@ -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