Skip to content
Snippets Groups Projects
Commit 9321273c authored by Henry Weller's avatar Henry Weller
Browse files

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
parent 16d29c63
Branches
Tags
1 merge request!60Merge foundation
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment