Changeset 2515


Ignore:
Timestamp:
26/04/2009 21:01:15 (3 years ago)
Author:
chris
Message:

Add a local copy of the XSL stylesheets needed to build Box Backup docs,
as remote copies are slow and prone to failure and weird behaviour with
different versions of xsltproc (e.g. on Cygwin).

Location:
box/trunk/docs
Files:
177 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/docs/Makefile

    r2489 r2515  
    4242manpages: man-dirs man-nroff man-html 
    4343 
    44 xslt: $(MANXSL) 
    45  
    46 $(MANXSL): $(MANXSL).tmpl 
    47         @if [ -f /usr/local/share/xsl/docbook/manpages/docbook.xsl ]; then \ 
    48            DOCBOOK=file:///usr/local/share/xsl/docbook/manpages/docbook.xsl; \ 
    49          elif [ -f /opt/local/share/xsl/docbook-xsl/manpages/docbook.xsl ]; then \ 
    50            DOCBOOK=file:///opt/local/share/xsl/docbook-xsl/manpages/docbook.xsl; \ 
    51          elif [ -f /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl ]; then \ 
    52            DOCBOOK=file:///usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl; \ 
    53          else \ 
    54            DOCBOOK=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl; \ 
    55          fi; \ 
    56          sed -e "s,%%DOCBOOK%%,$${DOCBOOK}," $(MANXSL).tmpl > $(MANXSL) 
    57  
    5844man-dirs: man/.there $(HTML_DIR)/man-html/.there 
    5945 
     
    8571        $(DBPROC) -o $@ $(NOCHUNKBOOKXSL) $< 
    8672 
    87 # Before running xsltproc to generate manual pages, we need to check 
    88 # that $(MANXSL) has been built. We don't want to add it to dependencies, 
    89 # because that would cause # the man pages to try to be rebuilt even if 
    90 # they already exist if the date of the xslt file changes, and that 
    91 # requires xsltproc, which negates the point of precompiling them for 
    92 # distribution users. 
    93  
    9473# GNU make 
    9574$(MAN_DIR)/%.8.gz: $(DOCBOOK_DIR)/%.xml 
    96         $(MAKE) xslt 
    9775        $(DBPROC) -o $(@:.gz=) $(MANXSL) $< 
    9876        gzip $(@:.gz=) 
     
    10078# GNU make 
    10179$(MAN_DIR)/%.5.gz: $(DOCBOOK_DIR)/%.xml 
    102         $(MAKE) xslt 
    10380        $(DBPROC) -o $(@:.gz=) $(MANXSL) $< 
    10481        gzip $(@:.gz=) 
     
    11087.for MAN_PAGE in $(NROFF_PAGES) : 
    11188$(MAN_DIR)/$(MAN_PAGE).gz: $(DOCBOOK_DIR)/$(MAN_PAGE:R).xml 
    112         $(MAKE) xslt 
    11389        $(DBPROC) -o $(.TARGET:.gz=) $(MANXSL) $> 
    11490        gzip $(@:.gz=) 
     
    126102        rm -f $(DOCBOOK_DIR)/ExceptionCodes.xml 
    127103        rm -f documentation-kit-0.10.tar.gz 
    128         rm -f $(MANXSL) 
    129104 
Note: See TracChangeset for help on using the changeset viewer.