summaryrefslogtreecommitdiff
path: root/tool/rmdirs
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-11 06:36:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-11 06:36:21 +0000
commit9d3d606907e3b4b3ac239d7a53d242e6b43f1e5a (patch)
treee9d9bca13d00f63d23371686bb54b9cc83fa893d /tool/rmdirs
parent9c37d74a8c9e999a494fdff1cf01945e19b53ba6 (diff)
* 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. * tool/rmdirs: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/rmdirs')
-rwxr-xr-xtool/rmdirs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rmdirs b/tool/rmdirs
index b116898..1dde99f 100755
--- a/tool/rmdirs
+++ b/tool/rmdirs
@@ -1,5 +1,5 @@
#!/bin/sh
-for dir; do
+for dir in "$@"; do
while rmdir "$dir" >/dev/null 2>&1 &&
parent=`expr "$dir" : '\(.*\)/[^/][^/]*'`; do
case "$parent" in