mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: 'wclean all' now uses either Allwclean or Allclean files if
present.
This commit is contained in:
@ -27,8 +27,8 @@
|
||||
# foamCleanTutorials
|
||||
#
|
||||
# Description
|
||||
# Run either Allclean or default cleanCase in current directory
|
||||
# and all its subdirectories.
|
||||
# Run either Allwclean, Allclean or default cleanCase in current directory
|
||||
# and all its subdirectories.
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -41,24 +41,29 @@ then
|
||||
thisScript="$PWD/$thisScript"
|
||||
fi
|
||||
|
||||
# If an argument is supplied do not execute ./Allclean to avoid recursion
|
||||
if [ $# = 0 -a -f Allclean ]
|
||||
# If an argument is supplied do not execute ./Allwclean or ./Allclean
|
||||
# (to avoid recursion)
|
||||
if [ $# -eq 0 -a -f Allwclean ]
|
||||
then
|
||||
# Specialised script.
|
||||
# Specialized script
|
||||
./Allwclean
|
||||
elif [ $# -eq 0 -a -f Allclean ]
|
||||
then
|
||||
# Specialized script
|
||||
./Allclean
|
||||
elif [ -d system ]
|
||||
then
|
||||
# Normal case.
|
||||
# Normal case
|
||||
cleanCase
|
||||
elif [ -d Make ]
|
||||
then
|
||||
# Normal application.
|
||||
# Normal application
|
||||
cleanApplication
|
||||
else
|
||||
# Recurse to subdirectories
|
||||
for caseDir in *
|
||||
# Recurse into subdirectories
|
||||
for caseName in *
|
||||
do
|
||||
( cd $caseDir 2>/dev/null && $thisScript )
|
||||
( cd $caseName 2>/dev/null && $thisScript )
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user