mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
wcleanAll - provide some information about the progress
- move tutorial cleanup to the end in case the user wishes to
abort the wcleanAll script
- adjusted wcleanAlmostAll according, but don't know if it's really
needed any more
This commit is contained in:
@ -32,15 +32,15 @@
|
|||||||
|
|
||||||
cd ${0%/*} || exit 1 # run from this directory
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
|
|
||||||
echo "Cleaning backup files"
|
echo "--------"
|
||||||
|
echo "Cleaning tutorials ..."
|
||||||
|
echo "Removing backup files"
|
||||||
find . -type f \( -name "*~" -o -name "*.bak" \) -exec rm {} \;
|
find . -type f \( -name "*~" -o -name "*.bak" \) -exec rm {} \;
|
||||||
find . \( -name 'core' -o -name 'core.[1-9]*' \) -exec rm {} \;
|
find . \( -name 'core' -o -name 'core.[1-9]*' \) -exec rm {} \;
|
||||||
find . \( -name '*.pvs' -o -name '*.OpenFOAM' \) -exec rm {} \;
|
find . \( -name '*.pvs' -o -name '*.OpenFOAM' \) -exec rm {} \;
|
||||||
rm logs > /dev/null 2>&1
|
rm logs testLoopReport > /dev/null 2>&1
|
||||||
rm testLoopReport > /dev/null 2>&1
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
foamCleanTutorials cases
|
foamCleanTutorials cases
|
||||||
|
|
||||||
|
echo "--------"
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -39,20 +39,27 @@
|
|||||||
|
|
||||||
for dir in lib applications/bin
|
for dir in lib applications/bin
|
||||||
do
|
do
|
||||||
|
echo "Removing $dir/"
|
||||||
[ -d $dir ] && rm -rf $dir/*
|
[ -d $dir ] && rm -rf $dir/*
|
||||||
done
|
done
|
||||||
|
|
||||||
( cd tutorials && ./Allclean )
|
echo "Removing *~ backup files"
|
||||||
|
|
||||||
find . -name '*~' -exec rm {} \;
|
find . -name '*~' -exec rm {} \;
|
||||||
|
|
||||||
|
echo "Removing .dep files"
|
||||||
find . -name '*.dep' -exec rm {} \;
|
find . -name '*.dep' -exec rm {} \;
|
||||||
|
|
||||||
|
echo "Cleaning Make subdirectories"
|
||||||
find `find . -depth \( -name "Make.[A-Za-z]*" -o -name "Make" \) -type d -print` -depth \( -type d ! -name "*Make.[A-Za-z]*" ! -name "*Make" \) -exec rm -rf {} \;
|
find `find . -depth \( -name "Make.[A-Za-z]*" -o -name "Make" \) -type d -print` -depth \( -type d ! -name "*Make.[A-Za-z]*" ! -name "*Make" \) -exec rm -rf {} \;
|
||||||
|
|
||||||
|
echo "Removing lnInclude and intermediate directories"
|
||||||
find . -depth -type d \( -name lnInclude -o -name ii_files -o -name Templates.DB \) -exec rm -rf {} \;
|
find . -depth -type d \( -name lnInclude -o -name ii_files -o -name Templates.DB \) -exec rm -rf {} \;
|
||||||
|
|
||||||
|
echo "Removing misc files"
|
||||||
find . \( -name exe -o -name log -o -name so_locations \) -exec rm {} \;
|
find . \( -name exe -o -name log -o -name so_locations \) -exec rm {} \;
|
||||||
|
|
||||||
# rm -rf src/mpich-${MPICH_VERSION}/platforms
|
# rm -rf src/mpich-${MPICH_VERSION}/platforms
|
||||||
|
|
||||||
|
( cd tutorials && ./Allclean )
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -24,11 +24,10 @@
|
|||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
# Script
|
# Script
|
||||||
# wmakeAlmostAll
|
# wcleanAlmostAll
|
||||||
#
|
#
|
||||||
# Description
|
# Description
|
||||||
# script that searches all the directories below the current for the
|
# as per wcleanAll, but retains "*~" backup files
|
||||||
# object file directories of all machines and then deletes them.
|
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -39,18 +38,25 @@
|
|||||||
|
|
||||||
for dir in lib applications/bin
|
for dir in lib applications/bin
|
||||||
do
|
do
|
||||||
|
echo "Removing $dir/"
|
||||||
[ -d $dir ] && rm -rf $dir/*
|
[ -d $dir ] && rm -rf $dir/*
|
||||||
done
|
done
|
||||||
|
|
||||||
( cd tutorials && ./Allclean )
|
echo "Retaining *~ backup files"
|
||||||
|
## find . -name '*~' -exec rm {} \;
|
||||||
|
|
||||||
# find . -name '*~' -exec rm {} \;
|
echo "Removing .dep files"
|
||||||
find . -name '*.dep' -exec rm {} \;
|
find . -name '*.dep' -exec rm {} \;
|
||||||
|
|
||||||
find `find . -depth \( -name "Make[.A-Za-z]*" -o -name "Make" \) -type d -print` -depth \( -type d ! -name "*Make[.A-Za-z]*" ! -name "*Make" \) -exec rm -r {} \;
|
echo "Cleaning Make subdirectories"
|
||||||
|
find `find . -depth \( -name "Make.[A-Za-z]*" -o -name "Make" \) -type d -print` -depth \( -type d ! -name "*Make.[A-Za-z]*" ! -name "*Make" \) -exec rm -rf {} \;
|
||||||
|
|
||||||
|
echo "Removing lnInclude and intermediate directories"
|
||||||
find . -depth -type d \( -name lnInclude -o -name ii_files -o -name Templates.DB \) -exec rm -rf {} \;
|
find . -depth -type d \( -name lnInclude -o -name ii_files -o -name Templates.DB \) -exec rm -rf {} \;
|
||||||
|
|
||||||
|
echo "Removing misc files"
|
||||||
find . \( -name exe -o -name log -o -name so_locations \) -exec rm {} \;
|
find . \( -name exe -o -name log -o -name so_locations \) -exec rm {} \;
|
||||||
|
|
||||||
|
( cd tutorials && ./Allclean )
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user