Changeset 9288c84


Ignore:
Timestamp:
01/05/2005 10:18:18 PM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Children:
e464747
Parents:
07c7a8d
Message:

One-step profiling for HTML output in multi-arch branch.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multi-arch/BOOK@4502 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r07c7a8d r9288c84  
    1212# x86
    1313        xsltproc --xinclude --nonet -stringparam profile.condition html -stringparam profile.arch x86 \
    14           --output $(BASEDIR)/lfs-html.xml stylesheets/lfs-profile.xsl index.xml
    15 
    16         xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
    17           -stringparam base.dir $(BASEDIR)/x86/ stylesheets/lfs-chunked.xsl \
    18           $(BASEDIR)/lfs-html.xml
     14          -stringparam base.dir $(BASEDIR)/x86/ stylesheets/lfs-chunked.xsl index.xml
    1915
    2016        if [ ! -e $(BASEDIR)/x86/stylesheets ]; then \
     
    3329          *.html
    3430
    35         rm $(BASEDIR)/lfs-html.xml
    36 
    3731# raq2
    3832        xsltproc --xinclude --nonet -stringparam profile.condition html -stringparam profile.arch raq2 \
    39           --output $(BASEDIR)/lfs-html.xml stylesheets/lfs-profile.xsl index.xml
    40 
    41         xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
    42           -stringparam base.dir $(BASEDIR)/raq2/ stylesheets/lfs-chunked.xsl \
    43           $(BASEDIR)/lfs-html.xml
     33          -stringparam base.dir $(BASEDIR)/raq2/ stylesheets/lfs-chunked.xsl index.xml
    4434
    4535        if [ ! -e $(BASEDIR)/raq2/stylesheets ]; then \
     
    5848          *.html
    5949
    60         rm $(BASEDIR)/lfs-html.xml
    61 
    6250# ppc
    6351        xsltproc --xinclude --nonet -stringparam profile.condition html -stringparam profile.arch ppc \
    64           --output $(BASEDIR)/lfs-html.xml stylesheets/lfs-profile.xsl index.xml
    65 
    66         xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
    67           -stringparam base.dir $(BASEDIR)/ppc/ stylesheets/lfs-chunked.xsl \
    68           $(BASEDIR)/lfs-html.xml
     52          -stringparam base.dir $(BASEDIR)/ppc/ stylesheets/lfs-chunked.xsl index.xml
    6953
    7054        if [ ! -e $(BASEDIR)/ppc/stylesheets ]; then \
     
    8367          *.html
    8468
    85         rm $(BASEDIR)/lfs-html.xml
    86 
    8769
    8870# common stuff
     
    9880html:
    9981        xsltproc --xinclude --nonet -stringparam profile.condition html -stringparam profile.arch $(ARCH) \
    100           --output $(BASEDIR)/lfs-html.xml stylesheets/lfs-profile.xsl index.xml
    101 
    102         xsltproc --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
    103           -stringparam base.dir $(BASEDIR)/ stylesheets/lfs-chunked.xsl \
    104           $(BASEDIR)/lfs-html.xml
     82          -stringparam base.dir $(BASEDIR)/ stylesheets/lfs-chunked.xsl index.xml
    10583
    10684        if [ ! -e $(BASEDIR)/stylesheets ]; then \
     
    11896        cd $(BASEDIR)/; sed -i -e "s@../images@images@g" \
    11997          *.html
    120 
    121         rm $(BASEDIR)/lfs-html.xml
    12298
    12399        for filename in `find $(BASEDIR) -name "*.html"`; do \
     
    145121pdf:
    146122        xsltproc --xinclude --nonet --stringparam profile.condition pdf -stringparam profile.arch $(ARCH) \
    147                 --output $(BASEDIR)/lfs-pdf.xml stylesheets/lfs-profile.xsl index.xml
     123                 --output $(BASEDIR)/lfs-pdf.xml stylesheets/lfs-profile.xsl index.xml
     124
    148125        xsltproc --nonet --output $(BASEDIR)/lfs-pdf.fo stylesheets/lfs-pdf.xsl \
    149126                $(BASEDIR)/lfs-pdf.xml
     127   
    150128        sed -i -e "s/inherit/all/" $(BASEDIR)/lfs-pdf.fo
     129 
    151130        fop.sh $(BASEDIR)/lfs-pdf.fo $(BASEDIR)/$(PDF_OUTPUT)
     131 
    152132        rm $(BASEDIR)/lfs-pdf.xml $(BASEDIR)/lfs-pdf.fo
    153133
    154134nochunks:
    155135        xsltproc --xinclude --nonet -stringparam profile.condition html -stringparam profile.arch $(ARCH) \
    156           --output $(BASEDIR)/lfs-nochunk.xml stylesheets/lfs-profile.xsl index.xml
    157 
    158         xsltproc --nonet --output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \
    159           stylesheets/lfs-nochunks.xsl $(BASEDIR)/lfs-nochunk.xml
    160 
    161         rm $(BASEDIR)/lfs-nochunk.xml
     136          --output  $(BASEDIR)/$(NOCHUNKS_OUTPUT) stylesheets/lfs-nochunks.xsl index.xml
    162137
    163138        tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
  • stylesheets/lfs-chunked.xsl

    r07c7a8d r9288c84  
    2525    Voila! (Man I hope we can do this better in XSLT 2.0)  -->
    2626   
    27   <xsl:include href="http://docbook.sourceforge.net/release/xsl/1.67.2/xhtml/chunk-code.xsl"/>
     27  <xsl:include href="http://docbook.sourceforge.net/release/xsl/1.67.2/xhtml/profile-chunk-code.xsl"/>
    2828
    2929    <!-- Including our others customized chunks templates -->
  • stylesheets/lfs-nochunks.xsl

    r07c7a8d r9288c84  
    66
    77    <!-- We use XHTML -->
    8   <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.67.2/xhtml/docbook.xsl"/>
     8  <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.67.2/xhtml/profile-docbook.xsl"/>
    99
    1010  <!-- Fix encoding issues with default UTF-8 output of the xhtml stylesheet -->
Note: See TracChangeset for help on using the changeset viewer.