mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-07-18 18:25:08 +01:00
Automatic merge of trunk into multilib
This commit is contained in:
commit
8ccf082a21
55
Makefile
55
Makefile
@ -1,7 +1,4 @@
|
||||
# vim:ts=3
|
||||
#BASEDIR = ~/lfs-book
|
||||
#SYSDDIR = ~/lfs-systemd
|
||||
#DUMPDIR = ~/lfs-commands
|
||||
RENDERTMP = $(HOME)/tmp
|
||||
CHUNK_QUIET = 1
|
||||
ROOT_ID =
|
||||
@ -24,15 +21,15 @@ ifneq ($(REV), sysv)
|
||||
endif
|
||||
|
||||
ifeq ($(REV), sysv)
|
||||
BASEDIR ?= ~/public_html/lfs-book
|
||||
BASEDIR ?= $(HOME)/public_html/lfs-book
|
||||
PDF_OUTPUT ?= LFS-BOOK.pdf
|
||||
NOCHUNKS_OUTPUT ?= LFS-BOOK.html
|
||||
DUMPDIR ?= ~/lfs-commands
|
||||
DUMPDIR ?= $(HOME)/lfs-commands
|
||||
else
|
||||
BASEDIR ?= ~/public_html/lfs-systemd
|
||||
BASEDIR ?= $(HOME)/public_html/lfs-systemd
|
||||
PDF_OUTPUT ?= LFS-SYSD-BOOK.pdf
|
||||
NOCHUNKS_OUTPUT ?= LFS-SYSD-BOOK.html
|
||||
DUMPDIR ?= ~/lfs-sysd-commands
|
||||
DUMPDIR ?= $(HOME)/lfs-sysd-commands
|
||||
endif
|
||||
|
||||
ifndef ARCH
|
||||
@ -60,7 +57,8 @@ book: validate profile-html
|
||||
@echo "Copying CSS code and images..."
|
||||
$(Q)mkdir -p $(BASEDIR)/stylesheets
|
||||
$(Q)cp stylesheets/lfs-xsl/*.css $(BASEDIR)/stylesheets
|
||||
$(Q)sed -i 's|../stylesheet|stylesheet|' $(BASEDIR)/index.html
|
||||
$(Q)sed -e 's|../stylesheet|stylesheet|' \
|
||||
-i $(BASEDIR)/index.html
|
||||
|
||||
$(Q)mkdir -p $(BASEDIR)/images
|
||||
$(Q)cp images/*.png $(BASEDIR)/images
|
||||
@ -68,11 +66,10 @@ book: validate profile-html
|
||||
@echo "Running Tidy and obfuscate.sh..."
|
||||
$(Q)for filename in `find $(BASEDIR) -name "*.html"`; do \
|
||||
tidy -config tidy.conf $$filename; \
|
||||
true; \
|
||||
/bin/bash obfuscate.sh $$filename; \
|
||||
sed -e "s@text/html@application/xhtml+xml@g" \
|
||||
sed -e "s|text/html|application/xhtml+xml|g" \
|
||||
-i $$filename; \
|
||||
done;
|
||||
done
|
||||
|
||||
$(Q)$(MAKE) --no-print-directory wget-list md5sums
|
||||
|
||||
@ -111,16 +108,16 @@ nochunks: validate profile-html
|
||||
--output $(BASEDIR)/$(NOCHUNKS_OUTPUT) \
|
||||
stylesheets/lfs-nochunks.xsl \
|
||||
$(RENDERTMP)/lfs-html.xml
|
||||
# $(RENDERTMP)/lfs-html2.xml
|
||||
|
||||
@echo "Running Tidy..."
|
||||
$(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || true
|
||||
$(Q)tidy -config tidy.conf $(BASEDIR)/$(NOCHUNKS_OUTPUT) || test $$? -le 1
|
||||
|
||||
@echo "Running obfuscate.sh..."
|
||||
$(Q)bash obfuscate.sh $(BASEDIR)/$(NOCHUNKS_OUTPUT)
|
||||
$(Q)sed -i -e "s@text/html@application/xhtml+xml@g" $(BASEDIR)/$(NOCHUNKS_OUTPUT)
|
||||
$(Q)sed -i -e "s@../wget-list@wget-list@" $(BASEDIR)/$(NOCHUNKS_OUTPUT)
|
||||
$(Q)sed -i -e "s@../md5sums@md5sums@" $(BASEDIR)/$(NOCHUNKS_OUTPUT)
|
||||
$(Q)bash obfuscate.sh $(BASEDIR)/$(NOCHUNKS_OUTPUT)
|
||||
$(Q)sed -e "s|text/html|application/xhtml+xml|g" \
|
||||
-e "s|../wget-list|wget-list|" \
|
||||
-e "s|../md5sums|md5sums|" \
|
||||
-i $(BASEDIR)/$(NOCHUNKS_OUTPUT)
|
||||
|
||||
@echo "Output at $(BASEDIR)/$(NOCHUNKS_OUTPUT)"
|
||||
|
||||
@ -139,17 +136,17 @@ validate: tmpdir version
|
||||
@echo "Adjusting for revision $(REV)..."
|
||||
$(Q)xsltproc --nonet \
|
||||
--xinclude \
|
||||
--output $(RENDERTMP)/lfs-html2.xml \
|
||||
--stringparam profile.revision $(REV) \
|
||||
--stringparam profile.arch $(ARCH) \
|
||||
--output $(RENDERTMP)/lfs-html2.xml \
|
||||
stylesheets/lfs-xsl/profile.xsl \
|
||||
index.xml
|
||||
|
||||
@echo "Validating the book..."
|
||||
$(Q)xmllint --nonet \
|
||||
--noent \
|
||||
--postvalid \
|
||||
-o $(RENDERTMP)/lfs-full.xml \
|
||||
$(Q)xmllint --nonet \
|
||||
--encode UTF-8 \
|
||||
--postvalid \
|
||||
--output $(RENDERTMP)/lfs-full.xml \
|
||||
$(RENDERTMP)/lfs-html2.xml
|
||||
|
||||
$(Q)rm -f appendices/*.script
|
||||
@ -171,18 +168,21 @@ wget-list: $(BASEDIR)/wget-list $(BASEDIR)/wget-list-$(REV)
|
||||
$(BASEDIR)/wget-list: stylesheets/wget-list.xsl $(DOWNLOADS_DEP)
|
||||
@echo "Generating consolidated wget list at $(BASEDIR)/wget-list ..."
|
||||
$(Q)mkdir -p $(BASEDIR)
|
||||
$(Q)xsltproc --xinclude --nonet \
|
||||
$(Q)xsltproc --nonet \
|
||||
--xinclude \
|
||||
--output $(BASEDIR)/wget-list \
|
||||
stylesheets/wget-list.xsl \
|
||||
chapter03/chapter03.xml
|
||||
|
||||
$(BASEDIR)/wget-list-$(REV): stylesheets/wget-list.xsl $(DOWNLOADS_DEP)
|
||||
$(Q)xsltproc --nonet --xinclude \
|
||||
$(Q)xsltproc --nonet \
|
||||
--xinclude \
|
||||
--stringparam profile.revision $(REV) \
|
||||
--output $(RENDERTMP)/wget-list.xml \
|
||||
stylesheets/lfs-xsl/profile.xsl \
|
||||
chapter03/chapter03.xml
|
||||
$(Q)xsltproc --xinclude --nonet \
|
||||
|
||||
$(Q)xsltproc --nonet \
|
||||
--output $(BASEDIR)/wget-list-$(REV) \
|
||||
stylesheets/wget-list.xsl \
|
||||
$(RENDERTMP)/wget-list.xml
|
||||
@ -192,14 +192,15 @@ $(BASEDIR)/md5sums: stylesheets/wget-list.xsl $(DOWNLOADS_DEP)
|
||||
@echo "Generating consolidated md5sum file at $(BASEDIR)/md5sums ..."
|
||||
$(Q)mkdir -p $(BASEDIR)
|
||||
|
||||
$(Q)xsltproc --nonet --xinclude \
|
||||
$(Q)xsltproc --nonet \
|
||||
--xinclude \
|
||||
--stringparam profile.revision $(REV) \
|
||||
--stringparam profile.arch $(ARCH) \
|
||||
--output $(RENDERTMP)/md5sum.xml \
|
||||
stylesheets/lfs-xsl/profile.xsl \
|
||||
chapter03/chapter03.xml
|
||||
|
||||
$(Q)xsltproc --xinclude --nonet \
|
||||
$(Q)xsltproc --nonet \
|
||||
--output $(BASEDIR)/md5sums \
|
||||
stylesheets/md5sum.xsl \
|
||||
$(RENDERTMP)/md5sum.xml
|
||||
|
@ -1,14 +1,13 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:exsl="http://exslt.org/common"
|
||||
extension-element-prefixes="exsl"
|
||||
version="1.0">
|
||||
xmlns:exsl="http://exslt.org/common"
|
||||
extension-element-prefixes="exsl"
|
||||
version="1.0">
|
||||
|
||||
<!-- XSLT stylesheet to extract commands from [B,H]LFS books. -->
|
||||
|
||||
<xsl:variable name="newline">
|
||||
<xsl:text>
|
||||
</xsl:text>
|
||||
<xsl:text>
</xsl:text>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:template match="/">
|
||||
|
@ -10,6 +10,14 @@
|
||||
<!-- Upstream XHTML presentation templates -->
|
||||
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
|
||||
|
||||
<xsl:param name="chunker.output.method" select="'xml'"/>
|
||||
<xsl:param name="chunker.output.encoding" select="'UTF-8'"/>
|
||||
<xsl:param name="chunker.output.media-type" select="'application/xhtml+xml'"/>
|
||||
<xsl:param name="chunker.output.doctype-public" select="'-//W3C//DTD XHTML 1.0 Strict//EN'"/>
|
||||
<xsl:param name="chunker.output.doctype-system" select="'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'"/>
|
||||
<xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
|
||||
<xsl:param name="chunker.output.indent" select="'no'"/>
|
||||
|
||||
<!-- Including our customized elements templates -->
|
||||
<xsl:include href="common.xsl"/>
|
||||
<xsl:include href="xhtml/lfs-admon.xsl"/>
|
||||
@ -31,9 +39,6 @@
|
||||
<xsl:param name="ulink.target" select="''"/>
|
||||
<xsl:param name="css.decoration" select="0"/>
|
||||
|
||||
<!-- No XML declaration -->
|
||||
<xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
|
||||
|
||||
<!-- Control generation of ToCs and LoTs -->
|
||||
<xsl:param name="generate.toc">
|
||||
book toc,title
|
||||
|
@ -10,6 +10,13 @@
|
||||
<!-- Upstream XHTML templates -->
|
||||
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
|
||||
|
||||
<xsl:output method="xml"
|
||||
encoding="UTF-8"
|
||||
media-type="application/xhtml+xml"
|
||||
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
|
||||
omit-xml-declaration="yes"
|
||||
indent="no" />
|
||||
<!-- Include our customized templates -->
|
||||
<xsl:include href="common.xsl"/>
|
||||
<xsl:include href="xhtml/lfs-index.xsl"/>
|
||||
|
@ -53,8 +53,8 @@
|
||||
We have expanded the support to several inline tags.
|
||||
See pdf/lfs-mixed.xsl.
|
||||
Note: the argument in select= is a zero-width space
|
||||
(unicode 200b, encoded in utf-8)-->
|
||||
<xsl:param name="ulink.hyphenate" select="''"/>
|
||||
(unicode 200b)-->
|
||||
<xsl:param name="ulink.hyphenate" select="'​'"/>
|
||||
|
||||
<!-- List of characters to allow ulink URLs, and supported inline tags,
|
||||
to be automatically hyphenated on.
|
||||
|
@ -18,6 +18,7 @@
|
||||
|
||||
<!-- Generate DocBook instance with correct DOCTYPE -->
|
||||
<xsl:output method="xml"
|
||||
encoding="UTF-8"
|
||||
doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
|
||||
doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
<!-- Create a md5 list for packages and patches used. -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="1.0">
|
||||
version="1.0">
|
||||
|
||||
<xsl:output method="text"/>
|
||||
|
||||
@ -31,8 +31,7 @@
|
||||
</xsl:call-template>
|
||||
|
||||
<!-- Add a newline -->
|
||||
<xsl:text>
|
||||
</xsl:text>
|
||||
<xsl:text>
</xsl:text>
|
||||
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
@ -4,7 +4,7 @@
|
||||
with wget. -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="1.0">
|
||||
version="1.0">
|
||||
|
||||
<xsl:output method="text"/>
|
||||
|
||||
@ -28,8 +28,7 @@
|
||||
<xsl:value-of select="@url"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:text>
|
||||
</xsl:text>
|
||||
<xsl:text>
</xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user