Files
openfoam/bin/rmdepall
Mark Olesen 4d96b876e4 cleanup of foam-pack scripts
- removed legacy foamDiffSourceList, foamPackChanged
  - added foamPackDoxygen for separate distribution of docs
    handles -prefix option
  - misc. cosmetic changes
2008-07-20 15:53:43 +02:00

16 lines
374 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: ${0##/} to remove all .dep files"
echo " ${0##/} <file> to remove all .dep files referring to <file>"
exit 1
fi