diff options
-rwxr-xr-x | bin/pkgclear | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/pkgclear b/bin/pkgclear new file mode 100755 index 0000000..7d3ecc0 --- /dev/null +++ b/bin/pkgclear @@ -0,0 +1,9 @@ +#!/bin/sh + +# pkgclear -- remove files left by patch + +n=0 +fs=$(ls *.~[2-9]~ *.~[2-9][0-9]~) +rm $fs +for f in $fs; do : $((n++)); done +echo "${0##*/}: deleted $n files" 1>&2 |