head	1.20;
access;
symbols
	HRS_XML_CLEANUP:1.12
	HRS_XML_CLEANUP_PRE:1.11
	EMILYBOYD_REDESIGN:1.11
	PRE_REDESIGN:1.9;
locks; strict;
comment	@# @;


1.20
date	2011.12.31.11.22.10;	author bz;	state Exp;
branches;
next	1.19;

1.19
date	2011.01.22.14.49.45;	author ryusuke;	state Exp;
branches;
next	1.18;

1.18
date	2010.01.19.20.29.00;	author hrs;	state Exp;
branches;
next	1.17;

1.17
date	2008.12.15.02.50.38;	author murray;	state Exp;
branches;
next	1.16;

1.16
date	2008.12.15.02.38.22;	author murray;	state Exp;
branches;
next	1.15;

1.15
date	2008.06.22.23.18.55;	author murray;	state Exp;
branches;
next	1.14;

1.14
date	2008.01.16.07.46.21;	author murray;	state Exp;
branches;
next	1.13;

1.13
date	2007.09.18.15.23.05;	author simon;	state Exp;
branches;
next	1.12;

1.12
date	2006.08.19.21.20.34;	author hrs;	state Exp;
branches;
next	1.11;

1.11
date	2005.10.05.04.55.34;	author murray;	state Exp;
branches;
next	1.10;

1.10
date	2005.10.04.18.28.28;	author hrs;	state Exp;
branches;
next	1.9;

1.9
date	2005.09.18.04.33.45;	author hrs;	state Exp;
branches;
next	1.8;

1.8
date	2005.08.17.14.50.45;	author ceri;	state Exp;
branches;
next	1.7;

1.7
date	2004.04.06.11.36.12;	author phantom;	state Exp;
branches;
next	1.6;

1.6
date	2004.04.06.00.05.46;	author phantom;	state Exp;
branches;
next	1.5;

1.5
date	2003.10.15.15.10.47;	author simon;	state Exp;
branches;
next	1.4;

1.4
date	2003.10.12.17.24.21;	author simon;	state Exp;
branches;
next	1.3;

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

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

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


desc
@@


1.20
log
@Bump the copyright year and other misc new years changes.  Happy 2012.
@
text
@# $FreeBSD: www/en/events/Makefile,v 1.19 2011/01/22 14:49:45 ryusuke Exp $

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

SUBDIR=  2002
SUBDIR+= 2003

# The year the top level events.html file starts from:
YEARSTART= 2011
# Years to generate past events pages for and link from top level:
PASTYEARS= 2010 2009 2008 2007 2006 2005 2004 2003

DATA=	events.css
INDEXLINK=	events.html

XMLDOCS+=		events:${XSL_EVENTS}:${XML_EVENTS_EVENTS}:
PARAMS.events=		--param startyear ${YEARSTART}
PARAMS.events+=		--stringparam pastyears '${PASTYEARS}'
DEPENDSET.events=	events

.for year in ${PASTYEARS}
XMLDOCS+=		events${year}:${XSL_EVENTS_PAST}:${XML_EVENTS_EVENTS}:
PARAMS.events${year}=	--param year ${year}
PARAMS.events${year}+=	--stringparam pastyears '${PASTYEARS}'
DEPENDSET.events${year}= events
.endfor

XMLDOCS+=		events_ics:${XSL_EVENTS_ICS}:${XML_EVENTS_EVENTS}:events.ics
DEPENDSET.events_ics=	events

XMLDOCS+=		events_rss:rss.xsl:${XML_EVENTS_EVENTS}:rss.xml

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


1.19
log
@Bump $YEARSTART to 2010.
@
text
@d1 1
a1 1
# $FreeBSD: www/en/events/Makefile,v 1.18 2010/01/19 20:29:00 hrs Exp $
d14 1
a14 1
YEARSTART= 2010
d16 1
a16 1
PASTYEARS= 2009 2008 2007 2006 2005 2004 2003
@


1.18
log
@- Fix $DEPENDSET.<id> for events${year}.html.
- Bump $YEARSTART to 2009 and sort $PASTYEARS in reverse order[*].

Requested by:	ryusuke[*]
@
text
@d1 1
a1 1
# $FreeBSD: www/en/events/Makefile,v 1.17 2008/12/15 02:50:38 murray Exp $
d14 1
a14 1
YEARSTART= 2009
@


1.17
log
@Add better navigation links at the bottom of the events pages for
previous years.
@
text
@d1 1
a1 1
# $FreeBSD: www/en/events/Makefile,v 1.16 2008/12/15 02:38:22 murray Exp $
d14 1
a14 1
YEARSTART= 2008
d16 1
a16 1
PASTYEARS= 2003 2004 2005 2006 2007
d30 1
a30 1
DEPENDSET.events${year}= events${year}
@


1.16
log
@Move 2007-era events off to a separate events2007 page to reduce
clutter for more timely upcoming 2009 and recent 2008 events.
@
text
@d1 1
a1 1
# $FreeBSD: www/en/events/Makefile,v 1.15 2008/06/22 23:18:55 murray Exp $
d29 1
@


1.15
log
@Display only events from 2007 and 2008 on the main events page, and
include links on the bottom for new pages with events from previous
years.
@
text
@d1 1
a1 1
# $FreeBSD: www/en/events/Makefile,v 1.14 2008/01/16 07:46:21 murray Exp $
d14 1
a14 1
YEARSTART= 2007
d16 1
a16 1
PASTYEARS= 2003 2004 2005 2006
@


1.14
log
@Add RSS 2.0 feed of upcoming FreeBSD events to compliment the ics
calendar file also made available from the events.xml data.

PR:	www/113112
@
text
@d1 1
a1 1
# $FreeBSD: www/en/events/Makefile,v 1.13 2007/09/18 15:23:05 simon Exp $
d13 5
d22 2
d26 6
@


1.13
log
@Make index.html a link to events.html.

This is already the case for www.FreeBSD.org, though I'm not sure how,
so this makes events link work from the frontpage of www.FreeBSD.org/
for people who build the web-site "themself" including e.g. the setup on
sky.FreeBSD.org.
@
text
@d1 1
a1 1
# $FreeBSD: www/en/events/Makefile,v 1.12 2006/08/19 21:20:34 hrs Exp $
d22 2
@


1.12
log
@www cleanup mega commit:

 - Move includes.nav*.sgml to share/sgml/navibar.ent and
   <lang>/share/sgml/nabibar.l10n.ent.

 - Move includes.sgml and includes.xsl to
   share/sgml/common.ent, share/sgml/header.ent, <lang>/share/sgml/l10n.ent,
   and <lang>?share/sgml/header.l10n.ent.

 - Move most of XSLT libraries to share/sgml/*.xsl and
   <lang>/share/sgml/*.xsl.

 - Move news.xml and other *.xml files for the similar purpose
   to share/sgml/*.xml and <lang>/share/sgml/*.xml.

 - Switch to use a custom DTD for HTML document.  Now we use
   "-//FreeBSD//DTD HTML 4.01 Transitional-Based Extension", which is
   HTML 4.01 + some entities previously pulled via
   "<!ENTITY % includes SYSTEM "includes.sgml"> %includes;" line.
   The location of entity file will be resolved by using catalog file.

 - Add DOCTYPE declearation to XML documents.  This makes the followings
   possible:

   * Use of &foo; entities for SGML in an XML file instead of defining
     {$foo} as the same content.

   * &symbolic; entities for Latin characters.

 - Duplicated information between SGML and XML, or English and
   translated doc, has been removed as much as possible.
@
text
@d1 1
a1 1
# $FreeBSD: www/en/events/Makefile,v 1.11 2005/10/05 04:55:34 murray Exp $
d14 1
@


1.11
log
@Fix events creation by properly generating curdate.xml file which the
XSLT script needs to reason about which events are in the future and
which have already occurred. It's not clear to me how Emily broke this
in the first place, but this fixes it at least.
@
text
@d1 1
a1 1
# $FreeBSD: www/en/events/Makefile,v 1.10 2005/10/04 18:28:28 hrs Exp $
a11 2
DATE?= /bin/date
TR?= /usr/bin/tr
d15 2
a16 1
CLEANFILES+= curdate.xml
d18 2
a19 28
XMLLINT?= /usr/local/bin/xmllint # Part of textproc/libxml2.

XMLDOCS+=	events
DEPENDSET.events=	events curdate.xml
SRCS.events=	../includes.xsl curdate.xml

XMLDOCS+=	events_ics:${WEB_PREFIX}/share/sgml/events2ics.xsl:events.xml:events.ics

lint:
	${XMLLINT} ${XMLLINTOPTS} --valid -o /dev/null ${.CURDIR}/events.xml

.if !make(install)
.PHONY:	curdate.xml
.endif
curdate.xml:
	@@${ECHO} "Generating ${.TARGET}"
	@@${ECHO_CMD} '<?xml version="1.0"?>'	 > ${.TARGET}
	@@${ECHO_CMD} '<curdate>'		>> ${.TARGET}
	@@${ECHO_CMD} -n '  <year>'		>> ${.TARGET}
	@@${DATE} +%Y | ${TR} -d "\n"		>> ${.TARGET}
	@@${ECHO_CMD} '</year>'			>> ${.TARGET}
	@@${ECHO_CMD} -n '  <month>'		>> ${.TARGET}
	@@${DATE} +%m | ${TR} -d "\n"		>> ${.TARGET}
	@@${ECHO_CMD} '</month>'			>> ${.TARGET}
	@@${ECHO_CMD} -n '  <day>'		>> ${.TARGET}
	@@${DATE} +%d | ${TR} -d "\n"		>> ${.TARGET}
	@@${ECHO_CMD} '</day>'			>> ${.TARGET}
	@@${ECHO_CMD} '</curdate>'		>> ${.TARGET}
@


1.10
log
@Fix XMLDOCS line for events.html and remove curdate.xml target.
@
text
@d1 1
a1 1
# $FreeBSD: www/en/events/Makefile,v 1.9 2005/09/18 04:33:45 hrs Exp $
d12 2
d22 2
a23 1
DEPENDSET.events=	events
d30 18
@


1.9
log
@Introduce doc.xml.mk and XMLDOC variable to simplify build
of XML docs.  Note that XML catalog support is still incomplete.
@
text
@d1 1
a1 1
# $FreeBSD: www/en/events/Makefile,v 1.8 2005/08/17 14:50:45 ceri Exp $
a16 4
INDEXLINK= events.html

DATE?=	/bin/date
TR?=	/usr/bin/tr
d19 2
a20 2
XMLDOCS=	events
SRCS.events=	../includes.xsl curdate.xml
d22 1
a22 1
XMLDOCS=	events_ics:${WEB_PREFIX}/share/sgml/events2ics.xsl:events.xml:events.ics
a26 18
.if !make(install)
.PHONY:	curdate.xml
.endif
curdate.xml:
	@@${ECHO} "Generating ${.TARGET}"
	@@${ECHO_CMD} '<?xml version="1.0"?>'	 > ${.TARGET}
	@@${ECHO_CMD} '<curdate>'		>> ${.TARGET}
	@@${ECHO_CMD} -n '  <year>'		>> ${.TARGET}
	@@${DATE} +%Y | ${TR} -d "\n"		>> ${.TARGET}
	@@${ECHO_CMD} '</year>'			>> ${.TARGET}
	@@${ECHO_CMD} -n '  <month>'		>> ${.TARGET}
	@@${DATE} +%m | ${TR} -d "\n"		>> ${.TARGET}
	@@${ECHO_CMD} '</month>'			>> ${.TARGET}
	@@${ECHO_CMD} -n '  <day>'		>> ${.TARGET}
	@@${DATE} +%d | ${TR} -d "\n"		>> ${.TARGET}
	@@${ECHO_CMD} '</day>'			>> ${.TARGET}
	@@${ECHO_CMD} '</curdate>'		>> ${.TARGET}

@


1.8
log
@Generate an iCalendar format events.ics file from events.xml so that
iCal, Entourage, Sunbird and other users can now subscribe to the events
calendar via the URL http://www.FreeBSD.org/events/events.ics.

Discussed on:	doc
@
text
@d1 1
a1 1
# $FreeBSD: www/en/events/Makefile,v 1.7 2004/04/06 11:36:12 phantom Exp $
a13 2
DATA+=	events.html
DATA+=	events.ics
a14 2
CLEANFILES+= events.html
CLEANFILES+= events.ics
d23 2
a24 6
events.html: events.xsl events.xml ../includes.xsl curdate.xml
	${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
		${.CURDIR}/events.xsl ${.CURDIR}/events.xml
.if !defined(NO_TIDY)
	-${TIDY} ${TIDYOPTS} ${.TARGET}
.endif
d26 1
a26 3
events.ics: events.xml
	${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
		${WEB_PREFIX}/share/sgml/events2ics.xsl ${.CURDIR}/events.xml
d29 1
a29 1
	${XMLLINT} --valid -o /dev/null ${.CURDIR}/events.xml
@


1.7
log
@. some style changes
. make curdate.xml dependency .PHONY in !make(install) case.  It avoids
  rebuilding curdate.xml and dependent files at 'make install'
@
text
@d1 1
a1 1
# $FreeBSD: www/en/events/Makefile,v 1.6 2004/04/06 00:05:46 phantom Exp $
d15 1
d18 1
d34 4
@


1.6
log
@Use '+=' to *add* entries instead of '='.  It unbreaks installing of
events.css file.

Spoted by:	make checkmissing
@
text
@d1 1
a1 1
# $FreeBSD: www/en/events/Makefile,v 1.5 2003/10/15 15:10:47 simon Exp $
d10 2
a11 1
SUBDIR=	2002 2003
d13 2
a14 1
DATA=   events.css
d16 2
a17 2
DATA+=	events.html
CLEANFILES+= events.html curdate.xml
d35 4
a38 2
# XXX TODO: Handle this better, so curdate.xml isn't rebuild on install.
curdate.xml!
@


1.5
log
@Link index.html to events.html.

Suggested by:	Josef El-Rayes <j.el-rayes@@daemon.li>
@
text
@d1 1
a1 1
# $FreeBSD: www/en/events/Makefile,v 1.4 2003/10/12 17:24:21 simon Exp $
d14 1
a14 1
DATA=	events.html
@


1.4
log
@Add an event section to the website.

This is meant both as a way to get an overview of upcoming FreeBSD
related events, and as a way to structure links to pages with
information / pictures / etc. from past events.

The page automatically determines which events are upcoming and which
are past, by comparing the event dates with the current date.

Discussed on:		-www
Inspired by PR:		www/53674
Which was submitted by:	Josef El-Rayes <j.el-rayes@@daemon.li>
@
text
@d1 1
a1 1
# $FreeBSD: www/en/events/Makefile,v 1.3 2003/09/22 07:44:39 murray Exp $
d16 2
@


1.3
log
@add 2003 subdir to build.
@
text
@d1 1
a1 1
# $FreeBSD: www/en/events/Makefile,v 1.2 2002/03/26 08:11:53 murray Exp $
d13 33
@


1.2
log
@Add the events-specific CSS file to the build, so that it will be
installed for use by the devsummit article.
@
text
@d1 1
a1 1
# $FreeBSD: www/en/events/Makefile,v 1.1 2002/03/25 04:23:42 murray Exp $
d10 1
a10 1
SUBDIR=	2002
@


1.1
log
@Add the BSDCon Dev Summit page to the build.
@
text
@d1 1
a1 1
# $FreeBSD$
d11 2
@

