Changeset 2304


Ignore:
Timestamp:
01/10/2008 00:27:06 (3 years ago)
Author:
jamesog
Message:

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).

Location:
box/trunk/documentation
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • box/trunk/documentation/Makefile

    r2153 r2304  
    99HTMLPREFIX=box-html 
    1010VPATH= adminguide 
     11# If your OS declares a system make variable, add a .elif statement here 
     12# with the path to the locally-installed DocBook stylesheet 
     13.if .FreeBSD 
     14# Requires textproc/docbook-xsl port installed 
     15DOCBOOK=file:///usr/local/share/xsl/docbook/manpages/docbook.xsl 
     16.else 
     17DOCBOOK=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl 
     18.endif 
    1119.SUFFIXES: .html .xml .1 .5 .8 
    1220 
     
    3240        perl ./generate_except_xml.pl 
    3341 
    34 manpages: man-dirs man-nroff man-html 
     42manpages: $(MANXSL) man-dirs man-nroff man-html 
     43 
     44$(MANXSL): $(MANXSL).tmpl 
     45        @sed -e 's,%%DOCBOOK%%,$(DOCBOOK),' $(MANXSL).tmpl > $(MANXSL) 
    3546 
    3647man-dirs: man-pages/.there $(HTMLPREFIX)/man-html/.there 
     
    4253        if [ ! -d man-pages ]; then mkdir man-pages; touch man-pages/.there; fi 
    4354 
    44 man-nroff: bbackupquery.8 bbackupctl.8 bbstoreaccounts.8 bbstored-config.8 \ 
    45         raidfile-config.8 bbstored-certs.8 
     55man-nroff: bbackupd.8 bbackupd-config.8 bbackupctl.8 bbackupquery.8 \ 
     56        bbstored.8 bbstored-config.8 bbstoreaccounts.8 bbstored-certs.8 \ 
     57        raidfile-config.8 \ 
     58        bbackupd.conf.5 bbstored.conf.5 raidfile.conf.5 
    4659 
    47 man-html: bbackupquery.html bbackupctl.html bbstoreaccounts.html \ 
    48         bbstored-config.html raidfile-config.html bbstored-certs.html 
     60man-html: bbackupd.html bbackupd-config.html bbackupctl.html bbackupquery.html \ 
     61        bbstored.html bbstored-config.html bbstoreaccounts.html bbstored-certs.html \ 
     62        raidfile-config.html \ 
     63        bbackupd.conf.html bbstored.conf.html raidfile.conf.html 
    4964 
    5065.xml.html: 
     
    5267        cp $@ $(HTMLPREFIX)/man-html/. 
    5368 
    54 .xml.8: 
     69.xml.8 .xml.5: 
    5570        $(DBPROC) -o $@ $(MANXSL) $< 
    5671        cp $@ man-pages/ 
  • box/trunk/documentation/bb-man.xsl.tmpl

    r556 r2304  
    33    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">  
    44 
    5 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"/>  
     5<xsl:import href="%%DOCBOOK%%"/>  
    66 
    77<xsl:param name="chunk.section.depth" select="'0'"/> 
Note: See TracChangeset for help on using the changeset viewer.