From 76f71d754a7311c9d709f3485227a444560a71b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 26 Jul 2021 22:38:00 +0200 Subject: Add pkgclear script --- bin/pkgclear | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 bin/pkgclear 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 -- cgit v1.2.3