wclean all: if an Allclean script exists in sub-directories execute otherwise execute wclean
Resolves bug-report http://bugs.openfoam.org/view.php?id=2125
This commit is contained in:
parent
16d29c6300
commit
9321273c26
1 changed files with 8 additions and 1 deletions
|
|
@ -224,8 +224,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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue