aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-07-11 17:13:52 -0400
committerRob Austein <sra@hactrn.net>2016-07-11 17:13:52 -0400
commit4b4c77f548891546a85b78e843e3af46472d38c9 (patch)
tree81c833ab10126f670011de6377d41fbaf6faf10d
parentd2d2a3f7af71b766d2d4026e648b380f124ad7e1 (diff)
Clean up old Homebrew source package tarballs.
-rw-r--r--Makefile8
1 files 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