[Box Backup-commit] COMMIT r2304 - box/trunk/documentation

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Wed Oct 1 00:27:07 BST 2008


Author: jamesog
Date: 2008-10-01 00:27:06 +0100 (Wed, 01 Oct 2008)
New Revision: 2304

Added:
   box/trunk/documentation/bb-man.xsl.tmpl
Removed:
   box/trunk/documentation/bb-man.xsl
Modified:
   box/trunk/documentation/Makefile
Log:
Update documentation Makefile to include a few more man pages and to make the man page stylesheet dynamic (whether it downloads the XSL stylesheet from the Internet or uses a local copy).



Modified: box/trunk/documentation/Makefile
===================================================================
--- box/trunk/documentation/Makefile	2008-09-30 21:07:36 UTC (rev 2303)
+++ box/trunk/documentation/Makefile	2008-09-30 23:27:06 UTC (rev 2304)
@@ -8,6 +8,14 @@
 MANXSL=bb-man.xsl
 HTMLPREFIX=box-html
 VPATH= adminguide
+# If your OS declares a system make variable, add a .elif statement here
+# with the path to the locally-installed DocBook stylesheet
+.if .FreeBSD
+# Requires textproc/docbook-xsl port installed
+DOCBOOK=file:///usr/local/share/xsl/docbook/manpages/docbook.xsl
+.else
+DOCBOOK=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
+.endif
 .SUFFIXES: .html .xml .1 .5 .8
 
 all: docs
@@ -31,8 +39,11 @@
 ExceptionCodes.xml: ../ExceptionCodes.txt
 	perl ./generate_except_xml.pl
 
-manpages: man-dirs man-nroff man-html
+manpages: $(MANXSL) man-dirs man-nroff man-html
 
+$(MANXSL): $(MANXSL).tmpl
+	@sed -e 's,%%DOCBOOK%%,$(DOCBOOK),' $(MANXSL).tmpl > $(MANXSL)
+
 man-dirs: man-pages/.there $(HTMLPREFIX)/man-html/.there
 
 $(HTMLPREFIX)/man-html/.there:
@@ -41,17 +52,21 @@
 man-pages/.there:
 	if [ ! -d man-pages ]; then mkdir man-pages; touch man-pages/.there; fi
 
-man-nroff: bbackupquery.8 bbackupctl.8 bbstoreaccounts.8 bbstored-config.8 \
-	raidfile-config.8 bbstored-certs.8
+man-nroff: bbackupd.8 bbackupd-config.8 bbackupctl.8 bbackupquery.8 \
+	bbstored.8 bbstored-config.8 bbstoreaccounts.8 bbstored-certs.8 \
+	raidfile-config.8 \
+	bbackupd.conf.5 bbstored.conf.5 raidfile.conf.5
 
-man-html: bbackupquery.html bbackupctl.html bbstoreaccounts.html \
-	bbstored-config.html raidfile-config.html bbstored-certs.html
+man-html: bbackupd.html bbackupd-config.html bbackupctl.html bbackupquery.html \
+	bbstored.html bbstored-config.html bbstoreaccounts.html bbstored-certs.html \
+	raidfile-config.html \
+	bbackupd.conf.html bbstored.conf.html raidfile.conf.html
 
 .xml.html:
 	$(DBPROC) -o $@ $(NOCHUNKBOOKXSL) $<
 	cp $@ $(HTMLPREFIX)/man-html/.
 
-.xml.8:
+.xml.8 .xml.5:
 	$(DBPROC) -o $@ $(MANXSL) $<
 	cp $@ man-pages/
 	rm -f man-pages/$@.gz

Deleted: box/trunk/documentation/bb-man.xsl
===================================================================
--- box/trunk/documentation/bb-man.xsl	2008-09-30 21:07:36 UTC (rev 2303)
+++ box/trunk/documentation/bb-man.xsl	2008-09-30 23:27:06 UTC (rev 2304)
@@ -1,9 +0,0 @@
-<?xml version='1.0'?> 
-<xsl:stylesheet  
-    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 
-
-<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"/> 
-
-<xsl:param name="chunk.section.depth" select="'0'"/>
-
-</xsl:stylesheet>

Copied: box/trunk/documentation/bb-man.xsl.tmpl (from rev 2289, box/trunk/documentation/bb-man.xsl)
===================================================================
--- box/trunk/documentation/bb-man.xsl.tmpl	                        (rev 0)
+++ box/trunk/documentation/bb-man.xsl.tmpl	2008-09-30 23:27:06 UTC (rev 2304)
@@ -0,0 +1,9 @@
+<?xml version='1.0'?> 
+<xsl:stylesheet  
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 
+
+<xsl:import href="%%DOCBOOK%%"/> 
+
+<xsl:param name="chunk.section.depth" select="'0'"/>
+
+</xsl:stylesheet>


Property changes on: box/trunk/documentation/bb-man.xsl.tmpl
___________________________________________________________________
Added: svn:mergeinfo
   + 




More information about the Boxbackup-commit mailing list