From 3e17f2c2f5598338738a94c5f0a1bb9ce9653bfa Mon Sep 17 00:00:00 2001
From: Webmaster
Date: Sat, 24 Mar 2007 03:55:56 +0000
Subject: [PATCH] More sexy time
---
Makefile | 5 +-
cscweb.xsl | 14 ++++++
events.xml | 6 +--
media/index.xml | 63 +++++++++++++++++++++--
xml2ics.pl | 130 ++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 211 insertions(+), 7 deletions(-)
create mode 100644 xml2ics.pl
diff --git a/Makefile b/Makefile
index ad5eafd..7505a93 100755
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ INPUTS = index.xml footer.xml
SUBDIRS = about events docs office news users clubs media
# the following two rules are there so cow gets built first.
-cow-first: recurse-cow books.xml members.xml menu.xml all
+cow-first: events.ics recurse-cow books.xml members.xml menu.xml all
recurse-cow:
cd cow && $(MAKE) && cd ..
@@ -19,6 +19,9 @@ books.xml:
ceoquery booklist | awk -F \| '{ isbn = $$1; title = $$2; author = $$3; edition = $$4; published = $$5; gsub(/&/, "\\&", title); gsub(/&/, "\\&", author); gsub(/&/, "\\&", published); gsub(/&/, "\\&", edition); gsub(/"/, "\\"", title); gsub(/"/, "\\"", author); gsub(/"/, "\\"", published); gsub(/"/, "\\"", edition); print ""; }' >> $@
echo '' >> $@
+events.ics:
+ perl xml2ics.pl events.xml > events.ics
+
include default.mk
default.mk: default.mk.in
diff --git a/cscweb.xsl b/cscweb.xsl
index 712da3c..90bf2f5 100755
--- a/cscweb.xsl
+++ b/cscweb.xsl
@@ -103,6 +103,20 @@
+
+
+
+