Changes in / [8ccf082a:f6a43f6]
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r8ccf082a rf6a43f6 1 1 # vim:ts=3 2 #BASEDIR = ~/lfs-book 3 #SYSDDIR = ~/lfs-systemd 4 #DUMPDIR = ~/lfs-commands 2 5 RENDERTMP = $(HOME)/tmp 3 6 CHUNK_QUIET = 1 … … 22 25 23 26 ifeq ($(REV), sysv) 24 BASEDIR ?= $(HOME)/public_html/lfs-book27 BASEDIR ?= ~/public_html/lfs-book 25 28 PDF_OUTPUT ?= LFS-BOOK.pdf 26 29 NOCHUNKS_OUTPUT ?= LFS-BOOK.html 27 DUMPDIR ?= $(HOME)/lfs-commands30 DUMPDIR ?= ~/lfs-commands 28 31 else 29 BASEDIR ?= $(HOME)/public_html/lfs-systemd32 BASEDIR ?= ~/public_html/lfs-systemd 30 33 PDF_OUTPUT ?= LFS-SYSD-BOOK.pdf 31 34 NOCHUNKS_OUTPUT ?= LFS-SYSD-BOOK.html 32 DUMPDIR ?= $(HOME)/lfs-sysd-commands35 DUMPDIR ?= ~/lfs-sysd-commands 33 36 endif 34 37 … … 58 61 $(Q)mkdir -p $(BASEDIR)/stylesheets 59 62 $(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 62 64 63 65 $(Q)mkdir -p $(BASEDIR)/images … … 67 69 $(Q)for filename in `find $(BASEDIR) -name "*.html"`; do \ 68 70 tidy -config tidy.conf $$filename; \ 71 true; \ 69 72 /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" \ 71 74 -i $$filename; \ 72 done75 done; 73 76 74 77 $(Q)$(MAKE) --no-print-directory wget-list md5sums … … 109 112 stylesheets/lfs-nochunks.xsl \ 110 113 $(RENDERTMP)/lfs-html.xml 114 # $(RENDERTMP)/lfs-html2.xml 111 115 112 116 @echo "Running Tidy..." 113 $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || t est $$? -le 1117 $(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true 114 118 115 119 @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) 121 124 122 125 @echo "Output at $(BASEDIR)/$(NOCHUNKS_OUTPUT)" … … 137 140 $(Q)xsltproc --nonet \ 138 141 --xinclude \ 142 --output $(RENDERTMP)/lfs-html2.xml \ 139 143 --stringparam profile.revision $(REV) \ 140 144 --stringparam profile.arch $(ARCH) \ 141 --output $(RENDERTMP)/lfs-html2.xml \142 145 stylesheets/lfs-xsl/profile.xsl \ 143 146 index.xml 144 147 145 148 @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 \ 150 153 $(RENDERTMP)/lfs-html2.xml 151 154 … … 169 172 @echo "Generating consolidated wget list at $(BASEDIR)/wget-list ..." 170 173 $(Q)mkdir -p $(BASEDIR) 171 $(Q)xsltproc --nonet \ 172 --xinclude \ 174 $(Q)xsltproc --xinclude --nonet \ 173 175 --output $(BASEDIR)/wget-list \ 174 176 stylesheets/wget-list.xsl \ … … 176 178 177 179 $(BASEDIR)/wget-list-$(REV): stylesheets/wget-list.xsl $(DOWNLOADS_DEP) 178 $(Q)xsltproc --nonet \ 179 --xinclude \ 180 $(Q)xsltproc --nonet --xinclude \ 180 181 --stringparam profile.revision $(REV) \ 181 182 --output $(RENDERTMP)/wget-list.xml \ 182 183 stylesheets/lfs-xsl/profile.xsl \ 183 184 chapter03/chapter03.xml 184 185 $(Q)xsltproc --nonet \ 185 $(Q)xsltproc --xinclude --nonet \ 186 186 --output $(BASEDIR)/wget-list-$(REV) \ 187 187 stylesheets/wget-list.xsl \ … … 193 193 $(Q)mkdir -p $(BASEDIR) 194 194 195 $(Q)xsltproc --nonet \ 196 --xinclude \ 195 $(Q)xsltproc --nonet --xinclude \ 197 196 --stringparam profile.revision $(REV) \ 198 197 --stringparam profile.arch $(ARCH) \ … … 201 200 chapter03/chapter03.xml 202 201 203 $(Q)xsltproc -- nonet\202 $(Q)xsltproc --xinclude --nonet \ 204 203 --output $(BASEDIR)/md5sums \ 205 204 stylesheets/md5sum.xsl \ -
stylesheets/dump-commands.xsl
r8ccf082a rf6a43f6 1 <?xml version="1.0" encoding="UTF-8"?>1 <?xml version="1.0"?> 2 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 4 5 3 xmlns:exsl="http://exslt.org/common" 4 extension-element-prefixes="exsl" 5 version="1.0"> 6 6 7 7 <!-- XSLT stylesheet to extract commands from [B,H]LFS books. --> 8 8 9 9 <xsl:variable name="newline"> 10 <xsl:text>
</xsl:text> 10 <xsl:text> 11 </xsl:text> 11 12 </xsl:variable> 12 13 -
stylesheets/lfs-xsl/chunk-slave.xsl
r8ccf082a rf6a43f6 10 10 <!-- Upstream XHTML presentation templates --> 11 11 <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'"/>20 12 21 13 <!-- Including our customized elements templates --> … … 39 31 <xsl:param name="ulink.target" select="''"/> 40 32 <xsl:param name="css.decoration" select="0"/> 33 34 <!-- No XML declaration --> 35 <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/> 41 36 42 37 <!-- Control generation of ToCs and LoTs --> -
stylesheets/lfs-xsl/nochunks.xsl
r8ccf082a rf6a43f6 11 11 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/> 12 12 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" />20 13 <!-- Include our customized templates --> 21 14 <xsl:include href="common.xsl"/> -
stylesheets/lfs-xsl/pdf.xsl
r8ccf082a rf6a43f6 54 54 See pdf/lfs-mixed.xsl. 55 55 Note: the argument in select= is a zero-width space 56 (unicode 200b )-->57 <xsl:param name="ulink.hyphenate" select="' ​'"/>56 (unicode 200b, encoded in utf-8)--> 57 <xsl:param name="ulink.hyphenate" select="''"/> 58 58 59 59 <!-- List of characters to allow ulink URLs, and supported inline tags, -
stylesheets/lfs-xsl/profile.xsl
r8ccf082a rf6a43f6 19 19 <!-- Generate DocBook instance with correct DOCTYPE --> 20 20 <xsl:output method="xml" 21 encoding="UTF-8"22 21 doctype-public="-//OASIS//DTD DocBook XML V4.5//EN" 23 22 doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/> -
stylesheets/md5sum.xsl
r8ccf082a rf6a43f6 4 4 5 5 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 6 6 version="1.0"> 7 7 8 8 <xsl:output method="text"/> … … 32 32 33 33 <!-- Add a newline --> 34 <xsl:text>
</xsl:text> 34 <xsl:text> 35 </xsl:text> 35 36 36 37 </xsl:if> -
stylesheets/wget-list.xsl
r8ccf082a rf6a43f6 5 5 6 6 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 7 7 version="1.0"> 8 8 9 9 <xsl:output method="text"/> … … 29 29 </xsl:otherwise> 30 30 </xsl:choose> 31 <xsl:text>
</xsl:text> 31 <xsl:text> 32 </xsl:text> 32 33 </xsl:if> 33 34 </xsl:template>
Note:
See TracChangeset
for help on using the changeset viewer.