From 4b4c77f548891546a85b78e843e3af46472d38c9 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 11 Jul 2016 17:13:52 -0400 Subject: Clean up old Homebrew source package tarballs. --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ca1bd2b..226fe47 100644 --- a/Makefile +++ b/Makefile @@ -101,9 +101,11 @@ homebrew: git push # rm -rf tap -# Still need: -# -# expire: target to expire old tarballs from .../brew/tarballs/, along the lines of download.rpki.net scripts +expire: + find ${REPO_BASE}/brew/tarballs \ + -name '${PACKAGE_NAME}_*.tar.xz' \ + ! -name '${PACKAGE_NAME}_${PACKAGE_VERSION}.tar.xz' \ + -mtime +7 -ls -delete RSYNC := rsync --rsh 'ssh -l ${REPO_UPLOAD_USER}' --archive --itemize-changes -- cgit v1.2.3