Changes in / [8ccf082a:f6a43f6]


Ignore:
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r8ccf082a rf6a43f6  
    11# vim:ts=3
     2#BASEDIR = ~/lfs-book
     3#SYSDDIR = ~/lfs-systemd
     4#DUMPDIR = ~/lfs-commands
    25RENDERTMP = $(HOME)/tmp
    36CHUNK_QUIET = 1
     
    2225
    2326ifeq ($(REV), sysv)
    24   BASEDIR         ?= $(HOME)/public_html/lfs-book
     27  BASEDIR         ?= ~/public_html/lfs-book
    2528  PDF_OUTPUT      ?= LFS-BOOK.pdf
    2629  NOCHUNKS_OUTPUT ?= LFS-BOOK.html
    27   DUMPDIR         ?= $(HOME)/lfs-commands
     30  DUMPDIR         ?= ~/lfs-commands
    2831else
    29   BASEDIR         ?= $(HOME)/public_html/lfs-systemd
     32  BASEDIR         ?= ~/public_html/lfs-systemd
    3033  PDF_OUTPUT      ?= LFS-SYSD-BOOK.pdf
    3134  NOCHUNKS_OUTPUT ?= LFS-SYSD-BOOK.html
    32   DUMPDIR         ?= $(HOME)/lfs-sysd-commands
     35  DUMPDIR         ?= ~/lfs-sysd-commands
    3336endif
    3437
     
    5861        $(Q)mkdir -p $(BASEDIR)/stylesheets
    5962        $(Q)cp stylesheets/lfs-xsl/*.css $(BASEDIR)/stylesheets
    60         $(Q)sed -e 's|../stylesheet|stylesheet|' \
    61            -i $(BASEDIR)/index.html
     63        $(Q)sed -i 's|../stylesheet|stylesheet|' $(BASEDIR)/index.html
    6264
    6365        $(Q)mkdir -p $(BASEDIR)/images
     
    6769        $(Q)for filename in `find $(BASEDIR) -name "*.html"`; do \
    6870         tidy -config tidy.conf $$filename;           \
     71         true;                                        \
    6972         /bin/bash obfuscate.sh $$filename;           \
    70          sed -e "s|text/html|application/xhtml+xml|g" \
     73         sed -e "s@text/html@application/xhtml+xml@g" \
    7174             -i $$filename;                           \
    72        done
     75   done;
    7376
    7477        $(Q)$(MAKE) --no-print-directory wget-list md5sums
     
    109112                stylesheets/lfs-nochunks.xsl           \
    110113                $(RENDERTMP)/lfs-html.xml
     114#                $(RENDERTMP)/lfs-html2.xml
    111115
    112116        @echo "Running Tidy..."
    113         $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || test $$? -le 1
     117        $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
    114118
    115119        @echo "Running obfuscate.sh..."
    116         $(Q)bash obfuscate.sh      $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    117         $(Q)sed -e "s|text/html|application/xhtml+xml|g" \
    118            -e "s|../wget-list|wget-list|"           \
    119            -e "s|../md5sums|md5sums|"               \
    120            -i $(BASEDIR)/$(NOCHUNKS_OUTPUT)
     120        $(Q)bash obfuscate.sh                                $(BASEDIR)/$(NOCHUNKS_OUTPUT)
     121        $(Q)sed -i -e "s@text/html@application/xhtml+xml@g"  $(BASEDIR)/$(NOCHUNKS_OUTPUT)
     122        $(Q)sed -i -e "s@../wget-list@wget-list@"            $(BASEDIR)/$(NOCHUNKS_OUTPUT)
     123        $(Q)sed -i -e "s@../md5sums@md5sums@"                $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    121124
    122125        @echo "Output at $(BASEDIR)/$(NOCHUNKS_OUTPUT)"
     
    137140        $(Q)xsltproc --nonet                               \
    138141                --xinclude                            \
     142                --output $(RENDERTMP)/lfs-html2.xml   \
    139143                --stringparam profile.revision $(REV) \
    140144                --stringparam profile.arch $(ARCH)    \
    141                 --output $(RENDERTMP)/lfs-html2.xml   \
    142145                stylesheets/lfs-xsl/profile.xsl       \
    143146                index.xml
    144147
    145148        @echo "Validating the book..."
    146         $(Q)xmllint --nonet                            \
    147                --encode UTF-8                     \
    148                --postvalid                        \
    149                --output $(RENDERTMP)/lfs-full.xml \
     149        $(Q)xmllint --nonet                      \
     150               --noent                      \
     151               --postvalid                  \
     152               -o $(RENDERTMP)/lfs-full.xml \
    150153               $(RENDERTMP)/lfs-html2.xml
    151154
     
    169172        @echo "Generating consolidated wget list at $(BASEDIR)/wget-list ..."
    170173        $(Q)mkdir -p $(BASEDIR)
    171         $(Q)xsltproc --nonet                       \
    172                 --xinclude                    \
     174        $(Q)xsltproc --xinclude --nonet            \
    173175                --output $(BASEDIR)/wget-list \
    174176                stylesheets/wget-list.xsl     \
     
    176178
    177179$(BASEDIR)/wget-list-$(REV): stylesheets/wget-list.xsl $(DOWNLOADS_DEP)
    178         $(Q)xsltproc --nonet                               \
    179                 --xinclude                            \
     180        $(Q)xsltproc --nonet --xinclude                   \
    180181                --stringparam profile.revision $(REV) \
    181182                --output $(RENDERTMP)/wget-list.xml   \
    182183                stylesheets/lfs-xsl/profile.xsl       \
    183184                chapter03/chapter03.xml
    184 
    185         $(Q)xsltproc --nonet                              \
     185        $(Q)xsltproc --xinclude --nonet                  \
    186186                --output $(BASEDIR)/wget-list-$(REV) \
    187187                stylesheets/wget-list.xsl            \
     
    193193        $(Q)mkdir -p $(BASEDIR)
    194194
    195         $(Q)xsltproc --nonet                               \
    196                 --xinclude                            \
     195        $(Q)xsltproc --nonet --xinclude                   \
    197196                --stringparam profile.revision $(REV) \
    198197                --stringparam profile.arch $(ARCH)    \
     
    201200                chapter03/chapter03.xml
    202201
    203         $(Q)xsltproc --nonet                     \
     202        $(Q)xsltproc --xinclude --nonet         \
    204203                --output $(BASEDIR)/md5sums \
    205204                stylesheets/md5sum.xsl      \
  • stylesheets/dump-commands.xsl

    r8ccf082a rf6a43f6  
    1 <?xml version="1.0" encoding="UTF-8"?>
     1<?xml version="1.0"?>
    22<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    3                 xmlns:exsl="http://exslt.org/common"
    4                 extension-element-prefixes="exsl"
    5                 version="1.0">
     3    xmlns:exsl="http://exslt.org/common"
     4    extension-element-prefixes="exsl"
     5    version="1.0">
    66
    77<!-- XSLT stylesheet to extract commands from [B,H]LFS books. -->
    88
    99  <xsl:variable name="newline">
    10     <xsl:text>&#xA;</xsl:text>
     10    <xsl:text>
     11</xsl:text>
    1112  </xsl:variable>
    1213
  • stylesheets/lfs-xsl/chunk-slave.xsl

    r8ccf082a rf6a43f6  
    1010  <!-- Upstream XHTML presentation templates -->
    1111  <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
    12 
    13   <xsl:param name="chunker.output.method" select="'xml'"/>
    14   <xsl:param name="chunker.output.encoding" select="'UTF-8'"/>
    15   <xsl:param name="chunker.output.media-type" select="'application/xhtml+xml'"/>
    16   <xsl:param name="chunker.output.doctype-public" select="'-//W3C//DTD XHTML 1.0 Strict//EN'"/>
    17   <xsl:param name="chunker.output.doctype-system" select="'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'"/>
    18   <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
    19   <xsl:param name="chunker.output.indent" select="'no'"/>
    2012
    2113  <!-- Including our customized elements templates -->
     
    3931  <xsl:param name="ulink.target" select="''"/>
    4032  <xsl:param name="css.decoration" select="0"/>
     33
     34  <!-- No XML declaration -->
     35  <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
    4136
    4237  <!-- Control generation of ToCs and LoTs -->
  • stylesheets/lfs-xsl/nochunks.xsl

    r8ccf082a rf6a43f6  
    1111  <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
    1212
    13   <xsl:output method="xml"
    14               encoding="UTF-8"
    15               media-type="application/xhtml+xml"
    16               doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
    17               doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
    18               omit-xml-declaration="yes"
    19               indent="no" />
    2013  <!-- Include our customized templates -->
    2114  <xsl:include href="common.xsl"/>
  • stylesheets/lfs-xsl/pdf.xsl

    r8ccf082a rf6a43f6  
    5454       See pdf/lfs-mixed.xsl.
    5555       Note: the argument in select= is a zero-width space
    56        (unicode 200b)-->
    57   <xsl:param name="ulink.hyphenate" select="'&#x200B;'"/>
     56       (unicode 200b, encoded in utf-8)-->
     57  <xsl:param name="ulink.hyphenate" select="''"/>
    5858
    5959  <!-- List of characters to allow ulink URLs, and supported inline tags,
  • stylesheets/lfs-xsl/profile.xsl

    r8ccf082a rf6a43f6  
    1919  <!-- Generate DocBook instance with correct DOCTYPE -->
    2020  <xsl:output method="xml"
    21               encoding="UTF-8"
    2221              doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
    2322              doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/>
  • stylesheets/md5sum.xsl

    r8ccf082a rf6a43f6  
    44
    55<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    6                 version="1.0">
     6    version="1.0">
    77
    88  <xsl:output method="text"/>
     
    3232
    3333      <!-- Add a newline -->
    34       <xsl:text>&#xA;</xsl:text>
     34      <xsl:text>
     35</xsl:text>
    3536
    3637    </xsl:if>
  • stylesheets/wget-list.xsl

    r8ccf082a rf6a43f6  
    55
    66<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    7                 version="1.0">
     7    version="1.0">
    88
    99  <xsl:output method="text"/>
     
    2929        </xsl:otherwise>
    3030      </xsl:choose>
    31       <xsl:text>&#xA;</xsl:text>
     31      <xsl:text>
     32</xsl:text>
    3233    </xsl:if>
    3334  </xsl:template>
Note: See TracChangeset for help on using the changeset viewer.