Changes in / [f6a43f6:8ccf082a]


Ignore:
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rf6a43f6 r8ccf082a  
    11# vim:ts=3
    2 #BASEDIR = ~/lfs-book
    3 #SYSDDIR = ~/lfs-systemd
    4 #DUMPDIR = ~/lfs-commands
    52RENDERTMP = $(HOME)/tmp
    63CHUNK_QUIET = 1
     
    2522
    2623ifeq ($(REV), sysv)
    27   BASEDIR         ?= ~/public_html/lfs-book
     24  BASEDIR         ?= $(HOME)/public_html/lfs-book
    2825  PDF_OUTPUT      ?= LFS-BOOK.pdf
    2926  NOCHUNKS_OUTPUT ?= LFS-BOOK.html
    30   DUMPDIR         ?= ~/lfs-commands
     27  DUMPDIR         ?= $(HOME)/lfs-commands
    3128else
    32   BASEDIR         ?= ~/public_html/lfs-systemd
     29  BASEDIR         ?= $(HOME)/public_html/lfs-systemd
    3330  PDF_OUTPUT      ?= LFS-SYSD-BOOK.pdf
    3431  NOCHUNKS_OUTPUT ?= LFS-SYSD-BOOK.html
    35   DUMPDIR         ?= ~/lfs-sysd-commands
     32  DUMPDIR         ?= $(HOME)/lfs-sysd-commands
    3633endif
    3734
     
    6158        $(Q)mkdir -p $(BASEDIR)/stylesheets
    6259        $(Q)cp stylesheets/lfs-xsl/*.css $(BASEDIR)/stylesheets
    63         $(Q)sed -i 's|../stylesheet|stylesheet|' $(BASEDIR)/index.html
     60        $(Q)sed -e 's|../stylesheet|stylesheet|' \
     61           -i $(BASEDIR)/index.html
    6462
    6563        $(Q)mkdir -p $(BASEDIR)/images
     
    6967        $(Q)for filename in `find $(BASEDIR) -name "*.html"`; do \
    7068         tidy -config tidy.conf $$filename;           \
    71          true;                                        \
    7269         /bin/bash obfuscate.sh $$filename;           \
    73          sed -e "s@text/html@application/xhtml+xml@g" \
     70         sed -e "s|text/html|application/xhtml+xml|g" \
    7471             -i $$filename;                           \
    75    done;
     72       done
    7673
    7774        $(Q)$(MAKE) --no-print-directory wget-list md5sums
     
    112109                stylesheets/lfs-nochunks.xsl           \
    113110                $(RENDERTMP)/lfs-html.xml
    114 #                $(RENDERTMP)/lfs-html2.xml
    115111
    116112        @echo "Running Tidy..."
    117         $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
     113        $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || test $$? -le 1
    118114
    119115        @echo "Running obfuscate.sh..."
    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)
     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)
    124121
    125122        @echo "Output at $(BASEDIR)/$(NOCHUNKS_OUTPUT)"
     
    140137        $(Q)xsltproc --nonet                               \
    141138                --xinclude                            \
    142                 --output $(RENDERTMP)/lfs-html2.xml   \
    143139                --stringparam profile.revision $(REV) \
    144140                --stringparam profile.arch $(ARCH)    \
     141                --output $(RENDERTMP)/lfs-html2.xml   \
    145142                stylesheets/lfs-xsl/profile.xsl       \
    146143                index.xml
    147144
    148145        @echo "Validating the book..."
    149         $(Q)xmllint --nonet                      \
    150                --noent                      \
    151                --postvalid                  \
    152                -o $(RENDERTMP)/lfs-full.xml \
     146        $(Q)xmllint --nonet                            \
     147               --encode UTF-8                     \
     148               --postvalid                        \
     149               --output $(RENDERTMP)/lfs-full.xml \
    153150               $(RENDERTMP)/lfs-html2.xml
    154151
     
    172169        @echo "Generating consolidated wget list at $(BASEDIR)/wget-list ..."
    173170        $(Q)mkdir -p $(BASEDIR)
    174         $(Q)xsltproc --xinclude --nonet            \
     171        $(Q)xsltproc --nonet                       \
     172                --xinclude                    \
    175173                --output $(BASEDIR)/wget-list \
    176174                stylesheets/wget-list.xsl     \
     
    178176
    179177$(BASEDIR)/wget-list-$(REV): stylesheets/wget-list.xsl $(DOWNLOADS_DEP)
    180         $(Q)xsltproc --nonet --xinclude                   \
     178        $(Q)xsltproc --nonet                               \
     179                --xinclude                            \
    181180                --stringparam profile.revision $(REV) \
    182181                --output $(RENDERTMP)/wget-list.xml   \
    183182                stylesheets/lfs-xsl/profile.xsl       \
    184183                chapter03/chapter03.xml
    185         $(Q)xsltproc --xinclude --nonet                  \
     184
     185        $(Q)xsltproc --nonet                              \
    186186                --output $(BASEDIR)/wget-list-$(REV) \
    187187                stylesheets/wget-list.xsl            \
     
    193193        $(Q)mkdir -p $(BASEDIR)
    194194
    195         $(Q)xsltproc --nonet --xinclude                   \
     195        $(Q)xsltproc --nonet                               \
     196                --xinclude                            \
    196197                --stringparam profile.revision $(REV) \
    197198                --stringparam profile.arch $(ARCH)    \
     
    200201                chapter03/chapter03.xml
    201202
    202         $(Q)xsltproc --xinclude --nonet         \
     203        $(Q)xsltproc --nonet                     \
    203204                --output $(BASEDIR)/md5sums \
    204205                stylesheets/md5sum.xsl      \
  • stylesheets/dump-commands.xsl

    rf6a43f6 r8ccf082a  
    1 <?xml version="1.0"?>
     1<?xml version="1.0" encoding="UTF-8"?>
    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>
    11 </xsl:text>
     10    <xsl:text>&#xA;</xsl:text>
    1211  </xsl:variable>
    1312
  • stylesheets/lfs-xsl/chunk-slave.xsl

    rf6a43f6 r8ccf082a  
    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'"/>
    1220
    1321  <!-- Including our customized elements templates -->
     
    3139  <xsl:param name="ulink.target" select="''"/>
    3240  <xsl:param name="css.decoration" select="0"/>
    33 
    34   <!-- No XML declaration -->
    35   <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
    3641
    3742  <!-- Control generation of ToCs and LoTs -->
  • stylesheets/lfs-xsl/nochunks.xsl

    rf6a43f6 r8ccf082a  
    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" />
    1320  <!-- Include our customized templates -->
    1421  <xsl:include href="common.xsl"/>
  • stylesheets/lfs-xsl/pdf.xsl

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

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

    rf6a43f6 r8ccf082a  
    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>
    35 </xsl:text>
     34      <xsl:text>&#xA;</xsl:text>
    3635
    3736    </xsl:if>
  • stylesheets/wget-list.xsl

    rf6a43f6 r8ccf082a  
    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>
    32 </xsl:text>
     31      <xsl:text>&#xA;</xsl:text>
    3332    </xsl:if>
    3433  </xsl:template>
Note: See TracChangeset for help on using the changeset viewer.