From owner-freebsd-doc@FreeBSD.ORG Tue Aug 16 21:34:46 2005 Return-Path: X-Original-To: doc@FreeBSD.org Delivered-To: freebsd-doc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 583B216A41F for ; Tue, 16 Aug 2005 21:34:46 +0000 (GMT) (envelope-from setantae@submonkey.net) Received: from shrike.submonkey.net (cpc4-cdif2-3-1-cust199.cdif.cable.ntl.com [82.31.76.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id B97C743D45 for ; Tue, 16 Aug 2005 21:34:45 +0000 (GMT) (envelope-from setantae@submonkey.net) Received: from setantae by shrike.submonkey.net with local (Exim 4.52 (FreeBSD)) id 1E5950-0002pd-Bn; Tue, 16 Aug 2005 22:34:42 +0100 Date: Tue, 16 Aug 2005 22:34:42 +0100 From: Ceri Davies To: doc@FreeBSD.org Message-ID: <20050816213442.GN55885@submonkey.net> Mail-Followup-To: Ceri Davies , doc@FreeBSD.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="H6o9R95t2FPeZmf3" Content-Disposition: inline X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.9i Sender: Ceri Davies Cc: Subject: Events in iCalendar format X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2005 21:34:46 -0000 --H6o9R95t2FPeZmf3 Content-Type: multipart/mixed; boundary="2+N3zU4ZlskbnZaJ" Content-Disposition: inline --2+N3zU4ZlskbnZaJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I made the attached patch so that we generate an events.ics that people can subscribe to. It's based on a quick run through of RFC 2445 and may not be immensely robust, but Mozilla Sunbird, Microsoft Entourage and Apple's iCal all seem to dig it. Comments? Ceri --=20 Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -- Einstein (attrib.) --2+N3zU4ZlskbnZaJ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="events.ical.diff" Content-Transfer-Encoding: quoted-printable Index: Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/dcvs/www/en/events/Makefile,v retrieving revision 1.7 diff -u -r1.7 Makefile --- Makefile 6 Apr 2004 11:36:12 -0000 1.7 +++ Makefile 16 Aug 2005 21:31:45 -0000 @@ -12,8 +12,10 @@ =20 DATA=3D events.css DATA+=3D events.html +DATA+=3D events.ics =20 CLEANFILES+=3D events.html +CLEANFILES+=3D events.ics CLEANFILES+=3D curdate.xml =20 INDEXLINK=3D events.html @@ -29,6 +31,10 @@ -${TIDY} ${TIDYOPTS} ${.TARGET} .endif =20 +events.ics: events.xml + ${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \ + ${.CURDIR}/events2ics.xsl ${.CURDIR}/events.xml + lint: ${XMLLINT} --valid -o /dev/null ${.CURDIR}/events.xml =20 Index: events2ics.xsl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: events2ics.xsl diff -N events2ics.xsl --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ events2ics.xsl 16 Aug 2005 21:31:45 -0000 @@ -0,0 +1,112 @@ + + + + + + + + + + + + + BEGIN:VCALENDAR +VERSION:2.0 +PRODID:$FreeBSD$ + +END:VCALENDAR + + + +BEGIN:VEVENT +SEQUENCE: +SUMMARY: + + + +LOCATION: + + + + , + + + + , + + + + , + + + + + + +DESCRIPTION: + + + +END:VEVENT + + + + + + + + +URL;VALUE=3DURI: + + + + + + + + + + + + +DTSTART;VALUE=3DDATE: + + +DTEND;VALUE=3DDATE: + + + + --2+N3zU4ZlskbnZaJ-- --H6o9R95t2FPeZmf3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDAlvyocfcwTS3JF8RAjAdAKCwJ3ignloAKIe5DP1zkIyDQbvevACgnoDg tkSwqlyf+b2AiC9Zsw4xbk0= =Ab2A -----END PGP SIGNATURE----- --H6o9R95t2FPeZmf3--