[Cryptech-Commits] [releng/alpha] 01/02: Clean up old Homebrew source package tarballs.

git at cryptech.is git at cryptech.is
Mon Jul 11 21:36:49 UTC 2016


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch master
in repository releng/alpha.

commit 4b4c77f548891546a85b78e843e3af46472d38c9
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Mon Jul 11 17:13:52 2016 -0400

    Clean up old Homebrew source package tarballs.
---
 Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

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
 



More information about the Commits mailing list