Index: openacs-4/packages/acs-core-docs/www/xml/Makefile
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/Makefile,v
diff -u -r1.8 -r1.8.2.1
--- openacs-4/packages/acs-core-docs/www/xml/Makefile 31 Oct 2003 10:54:07 -0000 1.8
+++ openacs-4/packages/acs-core-docs/www/xml/Makefile 17 Nov 2003 22:34:19 -0000 1.8.2.1
@@ -18,8 +18,35 @@
XSLTPROC=/usr/bin/xsltproc
HTMLDOC=/usr/bin/htmldoc
+
all: html pdf
+XSL:
+ if [ ! -d XSL -a ! -L XSL ]; then \
+ echo -e "\n\nNo XSL directory here. I am looking for one...\n"; \
+ for d in \
+ /usr/share/sgml/docbook/stylesheet/xsl/nwalsh \
+ /usr/share/sgml/docbook/xsl-stylesheets-* \
+ /usr/share/sgml/docbook/xsl-stylesheets; do \
+ if [ -d $$d ]; then \
+ echo "Found $$d"; \
+ EXISTS=$$d; \
+ fi; \
+ done; \
+ if [ "$$EXISTS" = "" ]; then \
+ echo -e "\
+\nNo xsl stylesheets found in /usr/share/sgml/docbook/\n\
+You need to install them on your system or if they exist already,\n\
+symlink them here so that XSL/html/chunk.xsl exists\n\
+see http://sourceforge.net/projects/docbook/ for the docbook-xsl stylesheets\n"; \
+ exit 1; \
+ else \
+ echo "I think $$EXISTS is the best one\n\n"; \
+ ln -s $$EXISTS XSL; \
+ fi; \
+ fi;
+
+
prelim:
cp -u images/*.{pdf,png,gif,jpg} ../images/
@@ -29,9 +56,9 @@
cp -u openacs.css ..
-html: prelim
+html: prelim XSL
# adding --nonet --novalid is much faster but generates a bunch of bogus error messages
cd .. ; $(XSLTPROC) --novalid --nonet --xinclude xml/openacs.xsl xml/index.xml
-pdf: html
+pdf: html XSL
# $(HTMLDOC) --batch ../for-everyone.book ../for-admins.book ../for-developers.book
Index: openacs-4/packages/acs-core-docs/www/xml/openacs.xsl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/openacs.xsl,v
diff -u -r1.12.2.2 -r1.12.2.3
--- openacs-4/packages/acs-core-docs/www/xml/openacs.xsl 17 Nov 2003 17:47:58 -0000 1.12.2.2
+++ openacs-4/packages/acs-core-docs/www/xml/openacs.xsl 17 Nov 2003 22:34:19 -0000 1.12.2.3
@@ -3,12 +3,11 @@
version="1.1"
exclude-result-prefixes="doc">
-
-
-
+