From d68573b245af77dd6cced4f21201d99848c20fd7 Mon Sep 17 00:00:00 2001
From: Stefanus Du Toit
Date: Mon, 15 Apr 2002 21:20:33 +0000
Subject: [PATCH] Build cow automatically. Some more cleanup (no more terms).
Remove debugging output.
---
Makefile | 6 ++++++
cow/functions.c | 5 -----
csc.dtd | 1 -
cscweb.xsl | 2 +-
events.xml | 14 +++++++-------
5 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/Makefile b/Makefile
index c722388..1542caf 100755
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,12 @@
INPUTS = index.xml
SUBDIRS = about events docs office
+# the following two rules are there so cow gets built first.
+cow-first: recurse-cow all
+
+recurse-cow:
+ cd cow && $(MAKE) && cd ..
+
include default.mk
default.mk: default.mk.in
diff --git a/cow/functions.c b/cow/functions.c
index a7902bc..1d73860 100755
--- a/cow/functions.c
+++ b/cow/functions.c
@@ -14,13 +14,11 @@ void extension_cow_term(xmlXPathParserContextPtr ctxt,
xmlChar *str, *ret;
int str_l, month;
- DEBUG_PRINT("term");
if (nargs != 1) {
xmlXPathSetArityError(ctxt);
}
str = xmlXPathPopString(ctxt);
str_l = xmlUTF8Strlen(str);
- DEBUG_PRINT(str);
month = (str[5] - '0')*10 + (str[6] - '0');
@@ -34,7 +32,6 @@ void extension_cow_term(xmlXPathParserContextPtr ctxt,
void *extension_init_func(xsltTransformContextPtr ctxt,
const xmlChar *URI)
{
- DEBUG_PRINT("Extension init");
return 0;
}
@@ -42,12 +39,10 @@ void extension_shutdown_func(xsltTransformContextPtr ctxt,
const xmlChar *URI,
void *data)
{
- DEBUG_PRINT("Extension shut down");
}
void init_extensions()
{
- DEBUG_PRINT("Registering extension module.");
xsltRegisterExtModule(COW_URI,
extension_init_func, extension_shutdown_func);
xsltRegisterExtModuleFunction((const xmlChar*)"term", COW_URI,
diff --git a/csc.dtd b/csc.dtd
index df27fca..a99da44 100755
--- a/csc.dtd
+++ b/csc.dtd
@@ -27,7 +27,6 @@
date CDATA #REQUIRED
time CDATA #REQUIRED
room CDATA #REQUIRED
- term CDATA #REQUIRED
title CDATA #REQUIRED>
diff --git a/cscweb.xsl b/cscweb.xsl
index 229bbb9..3ab8ff5 100755
--- a/cscweb.xsl
+++ b/cscweb.xsl
@@ -215,7 +215,7 @@
order="ascending"
data-type="number"/>
-
+
,
,
Bored of GNU/Linux? Try this experimental operating
system!
@@ -22,7 +22,7 @@ href="ja2morri@uwaterloo.ca">James Morrison.
Get more signatures on your key!
@@ -56,7 +56,7 @@ href="ja2morri@uwaterloo.ca">James Morrison.
+ title="UNIX 101: First Steps With UNIX">
This is the first in a series of seminars that cover the use of
the UNIX Operating System. UNIX is used in a variety of
@@ -66,7 +66,7 @@ href="ja2morri@uwaterloo.ca">James Morrison.
+ title="DVD-Video Under Linux">
Billy Biggs will be holding a talk on DVD technology
(in particular, CSS and playback issues) under Linux, giving some
technical details as well as an overview of the current status of
@@ -90,7 +90,7 @@ href="ja2morri@uwaterloo.ca">James Morrison.
+ title="Unix 102: Fun With UNIX">
This the second in a series of UNIX tutorials. Simon Law and
James Perry will be presenting some more advanced UNIX
techniques. All are welcome. Accounts will be provided for those
@@ -117,7 +117,7 @@ href="ja2morri@uwaterloo.ca">James Morrison.
+ title="Unix 103: More Advanced UNIX">
This is the third in a series of UNIX tutorials. Simon Law
and James Perry will be teaching material following up on UNIX
102. All are welcome. Accounts will be provided for those needing
@@ -129,7 +129,7 @@ href="ja2morri@uwaterloo.ca">James Morrison.
+ title="Computer Go, The Ultimate">
Thomas Wolf from Brock University will be holding a talk on
the asian game of Go. All are welcome.