Skip to content
Snippets Groups Projects
Commit f317958d authored by Mark Olesen's avatar Mark Olesen
Browse files

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

- also reported as http://bugs.openfoam.org/view.php?id=2125
parent b2b41231
Branches
Tags
No related merge requests found
......@@ -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
......
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