ENH: avoid possibly non-portable 'find' with '-printf'

This commit is contained in:
Mark Olesen 2010-04-20 19:14:42 +02:00
parent 5cfa97624e
commit 470b30b58c

View File

@ -113,13 +113,12 @@ then
exit $? exit $?
elif [ ! -d $MakeDir ] elif [ ! -d $MakeDir ]
then then
for dir in `find . \( -type d -a -name Make \) -printf "%h "` for dir in `find . \( -type d -a -name Make \)`
do do
$0 $dir $0 ${dir%/Make} # parent directory - trim /Make from the end
done done
exit 0 exit 0
fi fi
fi fi
# makeOption is not needed beyond this point # makeOption is not needed beyond this point