mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: wclean all now finds Allwclean files too (issue #408)
- this may still need more testing, but the basic idea is to find directories with 'Allwclean' or 'Make' and process them (once!)
This commit is contained in:
12
wmake/wclean
12
wmake/wclean
@ -231,16 +231,18 @@ then
|
||||
exit $?
|
||||
fi
|
||||
|
||||
# For all sub-directories containing a 'Make' directory
|
||||
for dir in $(find . -type d -name Make)
|
||||
# For all directories containing a 'Make' directory, or an 'Allwclean' file
|
||||
for dir in $(find . -name Allwclean -o -name Make)
|
||||
do
|
||||
echo ${dir%/*}
|
||||
done | sort | uniq | while read dir
|
||||
do
|
||||
dir=${dir%/*} # Parent directory containing the Make directory
|
||||
|
||||
# Use Allwclean if it exists, otherwise wclean
|
||||
if [ -e "$dir/Allwclean" ]
|
||||
then
|
||||
$dir/Allwclean
|
||||
else
|
||||
elif [ -d "$dir/Make" ]
|
||||
then
|
||||
$0 $dir
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user