zap small files whose sizes don't match, so the next mirror gets a chance

to go at it.
This commit is contained in:
espie 2005-06-25 22:01:46 +00:00
parent 22449f5f77
commit e5b301e189

View File

@ -1,6 +1,6 @@
#-*- mode: Makefile; tab-width: 4; -*-
# ex:ts=4 sw=4 filetype=make:
# $OpenBSD: bsd.port.mk,v 1.700 2005/06/25 10:51:32 espie Exp $
# $OpenBSD: bsd.port.mk,v 1.701 2005/06/25 22:01:46 espie Exp $
# $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $
# $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
#
@ -2005,6 +2005,7 @@ ${_F}:
else \
if grep -q "SIZE ($$file)" ${CHECKSUM_FILE}; then \
${ECHO_MSG} ">> Size does not match for ${_F}"; \
test 0`wc -c $$file 2>/dev/null` -lt 10000 && rm -f $$file; \
else \
${ECHO_MSG} ">> No size recorded for ${_F}"; \
exit 0; \