From d76fbfdcbc3e9038c53b9f0271183af5126b7ac1 Mon Sep 17 00:00:00 2001 From: Murray Stokely Date: Mon, 19 Nov 2001 04:47:58 +0000 Subject: [PATCH] Implement a 'NO_PRSTATS' variable. If this is defined, the PR statistics will not be generated, and the graphs will be referenced from www.FreeBSD.org instead of from a local copy of the images. Requested by: phantom --- en/prstats/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/en/prstats/Makefile b/en/prstats/Makefile index ef21d75702..678c2f78bb 100644 --- a/en/prstats/Makefile +++ b/en/prstats/Makefile @@ -1,4 +1,4 @@ -# $FreeBSD: www/en/prstats/Makefile,v 1.1 2001/10/29 02:17:31 murray Exp $ +# $FreeBSD: www/en/prstats/Makefile,v 1.2 2001/11/18 16:13:07 murray Exp $ .if exists(../Makefile.conf) .include "../Makefile.conf" @@ -8,6 +8,12 @@ .endif DOCS= index.sgml + +.if !defined(NO_PRSTATS) SUBDIR+= ../../tools/prstats +.else +beforeinstall: + ${PERL} -pi -e 's/SRC=\"gnats/SRC=\"http:\/\/www.FreeBSD.org\/prstats\/gnats/' index.html +.endif .include "${WEB_PREFIX}/share/mk/web.site.mk"