BUG: wclean all does not use Allwclean in subdirectories (fixes #150)

- also reported as http://bugs.openfoam.org/view.php?id=2125
This commit is contained in:
Mark Olesen
2016-06-20 11:04:25 +02:00
parent b2b4123164
commit f317958d5a

View File

@ -157,8 +157,15 @@ then
# For all the sub-directories containing a 'Make' directory
for dir in `find . \( -type d -a -name Make \)`
do
dir=${dir%/Make} # Parent directory - trim /Make from the end
echo $dir
$0 ${dir%/Make} # Parent directory - trim /Make from the end
# If Allwclean exists execute otherwise wclean
if [ -e "$dir/Allwclean" ]
then
$dir/Allwclean
else
$0 $dir
fi
done
fi
fi