db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
12 lines
393 B
Bash
Executable file
12 lines
393 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ $# -eq 0 ]; then
|
|
find . \( -name '*.dep' \) -print | xargs -t rm
|
|
elif [ $# -eq 1 ]; then
|
|
echo "Removing all dep files containing $1..."
|
|
find . -name '*.dep' -exec grep "$1" '{}' \; -exec rm '{}' \;
|
|
else
|
|
echo "Usage: `basename $0` to remove all .dep files"
|
|
echo " `basename $0` <file> to remove all .dep files referring to <file>"
|
|
exit 1
|
|
fi
|