generic/Makefile patch
Bhuvaneswaran
bhuvaneswaran at gmail.com
Mon Nov 7 12:37:16 UTC 2005
Hello,
I've added an entry for serverguide in generic/Makefile. It generates
both single/multiple html files. I've added
generic/libs/server-guide-html-single-cust.xsl and
generic/libs/server-guide-html-chunk-cust.xsl to generate single &
multiple html files respectively.
I've attached these two files along with the patch for
generic/Makefile. I've tested this patch, by generating html files and
viewing them from web browser. It works fine. So, i request you to
verify and apply, thankx.
--
Regards,
Bhuvaneswaran
www.symonds.net/~bhuvan/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: server-guide-html-single-cust.xsl
Type: application/xml
Size: 1480 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-doc/attachments/20051107/0258cda2/attachment.xsl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: server-guide-html-chunk-cust.xsl
Type: application/xml
Size: 1478 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-doc/attachments/20051107/0258cda2/attachment-0001.xsl>
-------------- next part --------------
Index: Makefile
===================================================================
--- Makefile (revision 2029)
+++ Makefile (working copy)
@@ -33,14 +33,17 @@
# Syle Guide HTML Customization Layer
SGHTMLXSL=libs/style-guide-html-cust.xsl
+SERVERCHUNKXSL=libs/server-guide-html-chunk-cust.xsl
+SERVERSINGLEXSL=libs/server-guide-html-single-cust.xsl
# Base gnome directories for output from processor
BASE=../build/generic/
IMAGES=../build/generic/images/
SGBASE=../build/generic/styleguide/
+SERVERBASE=../build/generic/serverguide/
.PHONY: all
-all: sg
+all: sg server
# copy style sheet to build directory
cp default.css ../build/generic/default.css
@@ -68,4 +71,29 @@
# copy style sheet to build directory
cp default.css ../build/generic/default.css
- @echo "--- Complete. Find outputs at" $(SGBASE)
+ @echo "--- Complete. Find output at" $(SGBASE)
+
+## Server Guide
+server:
+ @echo "--- Building the Ubuntu Server Starter Guide . . ."
+
+ @echo "--- Removing existing build files (if any). . ."
+ rm -f $(SERVERBASE)*.html
+ @echo "--- Building new files. . . "
+
+ xsltproc --xinclude --stringparam base.dir $(SERVERBASE)C/ $(SERVERCHUNKXSL) serverguide/C/serverguide.xml
+ xsltproc --xinclude -o $(SERVERBASE)C/serverguide-all.html $(SERVERSINGLEXSL) serverguide/C/serverguide.xml
+
+ mkdir -p $(IMAGES)admon
+ cp -r ../common/admon/*.* $(IMAGES)admon
+
+ mkdir -p $(IMAGES)callouts
+ cp -r ../common/callouts/*.* $(IMAGES)callouts
+
+ mkdir -p $(IMAGES)navig
+ cp -r ../common/navig/*.* $(IMAGES)navig
+
+ # copy style sheet to build directory
+ cp default.css ../build/generic/serverguide/default.css
+
+ @echo "--- Complete. Find output at" $(SERVERBASE)
More information about the ubuntu-doc
mailing list