From f317958d5a524df7cd37b376c6bdc2e271751acd Mon Sep 17 00:00:00 2001 From: Mark Olesen <Mark.Olesen@Germany> Date: Mon, 20 Jun 2016 11:04:25 +0200 Subject: [PATCH] BUG: wclean all does not use Allwclean in subdirectories (fixes #150) - also reported as http://bugs.openfoam.org/view.php?id=2125 --- wmake/wclean | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wmake/wclean b/wmake/wclean index c4f3808ba56..3e2c5f2b0b0 100755 --- a/wmake/wclean +++ b/wmake/wclean @@ -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 -- GitLab