head	1.3;
access;
symbols
	HRS_XML_CLEANUP:1.3
	HRS_XML_CLEANUP_PRE:1.3
	EMILYBOYD_REDESIGN:1.3
	PRE_REDESIGN:1.3;
locks; strict;
comment	@# @;


1.3
date	2001.11.19.07.06.40;	author murray;	state Exp;
branches;
next	1.2;

1.2
date	2001.11.18.16.11.34;	author murray;	state Exp;
branches;
next	1.1;

1.1
date	2001.10.29.01.58.12;	author murray;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Define GNATSDIR with '?=' instead of '=', so that the location of the
GNATS PR database may be overridden on the command line.
@
text
@#
# $FreeBSD: www/tools/prstats/Makefile,v 1.2 2001/11/18 16:11:34 murray Exp $
#

.if exists(../../en/Makefile.conf)
.include "../../en/Makefile.conf"
.endif
.if exists(../../en/Makefile.inc)
.include "../../en/Makefile.inc"
.endif

WEB_PREFIX?= ${.CURDIR}/../..
GNATSDIR?= /c/gnats
PRGRAPHDIR?= ${DESTDIR}${WEBBASE}/prstats
GNUPLOT?= /usr/local/bin/gnuplot

GRAPHS= gnats.png
GRAPHS+= gnats1.png gnats1r.png
GRAPHS+= gnats30.png gnats30r.png
GRAPHS+= gnats365.png gnats365r.png
GRAPHS+= gnats7.png gnats7r.png
CLEANFILES= ${GRAPHS}
CLEANFILES+= _ __ __1 __30 __365 __7

INSTALL_WEB?=	\
	${INSTALL} ${COPY} ${INSTALLFLAGS} -o ${WEBOWN} -g ${WEBGRP} -m ${WEBMODE}

all:
	./go.tcl ${GNATSDIR}
	./eval.tcl
	./cut.tcl 365 __ __365
	./cut.tcl 30 __ __30
	./cut.tcl 7 __ __7
	./cut.tcl 1 __ __1
	${GNUPLOT} g

install: ${GRAPHS}
.for entry in ${GRAPHS}
.if exists(${.CURDIR}/${entry})
	${INSTALL_WEB} ${.CURDIR}/${entry} ${PRGRAPHDIR}
.else
	${INSTALL_WEB} ${entry} ${PRGRAPHDIR}
.endif
.endfor

.include "${WEB_PREFIX}/share/mk/web.site.mk"
@


1.2
log
@Add the standard makefile glue to integrate the PR generation
statistics into the rest of the web build.  This will be connected to
the web build soon so that the graphs are updated whenever the
webupdate script is run, instead of being generated from a cron job in
my home directory on freefall.
@
text
@d2 1
a2 1
# $FreeBSD: www/tools/prstats/Makefile,v 1.1 2001/10/29 01:58:12 murray Exp $
d13 3
a15 3
GNATSDIR= /c/gnats
PRGRAPHDIR= ${DESTDIR}${WEBBASE}/prstats
GNUPLOT= /usr/local/bin/gnuplot
@


1.1
log
@Import Poul-Henning Kamp's PR statistics into the web tree.

Move the legend over to the upper left hand side, so it doesn't
obscure part of the generated graphs.

Obtained from:	http://phk.freebsd.dk/Gnats
Approved by:	phk
@
text
@d2 1
a2 1
# $FreeBSD$
d5 23
d29 1
a29 1
	./go.tcl
a30 3
	make copy

copy:
d35 12
a46 1
	/usr/local/bin/gnuplot g
@

