mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 11:19:19 +01:00
Remove all &#xxx; occurences
- replace some characters by their utf-8 encoded equivalent (and change encoding in the <?xml?> line - replace 
 with a true newline char. This is somewhat more readable anyway.
This commit is contained in:
parent
9512d6c7ba
commit
2a26a4f5df
@ -7,7 +7,8 @@
|
|||||||
<!-- XSLT stylesheet to extract commands from [B,H]LFS books. -->
|
<!-- XSLT stylesheet to extract commands from [B,H]LFS books. -->
|
||||||
|
|
||||||
<xsl:variable name="newline">
|
<xsl:variable name="newline">
|
||||||
<xsl:text>
</xsl:text>
|
<xsl:text>
|
||||||
|
</xsl:text>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?xml version='1.0' encoding='ISO-8859-1'?>
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:fo="http://www.w3.org/1999/XSL/Format"
|
xmlns:fo="http://www.w3.org/1999/XSL/Format"
|
||||||
@ -51,8 +51,10 @@
|
|||||||
|
|
||||||
<!-- Allow URLs to be automatically hyphenated.
|
<!-- Allow URLs to be automatically hyphenated.
|
||||||
We have expanded the support to several inline tags.
|
We have expanded the support to several inline tags.
|
||||||
See pdf/lfs-mixed.xsl -->
|
See pdf/lfs-mixed.xsl.
|
||||||
<xsl:param name="ulink.hyphenate" select="'​'"/>
|
Note: the argument in select= is a zero-width space
|
||||||
|
(unicode 200b, encoded in utf-8)-->
|
||||||
|
<xsl:param name="ulink.hyphenate" select="''"/>
|
||||||
|
|
||||||
<!-- List of characters to allow ulink URLs, and supported inline tags,
|
<!-- List of characters to allow ulink URLs, and supported inline tags,
|
||||||
to be automatically hyphenated on.
|
to be automatically hyphenated on.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?xml version='1.0' encoding='ISO-8859-1'?>
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
@ -294,7 +294,9 @@
|
|||||||
</td>
|
</td>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="$numcols > 3">
|
<xsl:when test="$numcols > 3">
|
||||||
<td> </td>
|
<!-- The space between <td> and </td> is a non breakable
|
||||||
|
space (unicode A0) encoded in utf-8.-->
|
||||||
|
<td> </td>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise/>
|
<xsl:otherwise/>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version='1.0' encoding='ISO-8859-1'?>
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
|
||||||
<!-- Create a md5 list for packages and pathces used. -->
|
<!-- Create a md5 list for packages and patches used. -->
|
||||||
|
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
version="1.0">
|
version="1.0">
|
||||||
@ -31,7 +31,8 @@
|
|||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
|
|
||||||
<!-- Add a newline -->
|
<!-- Add a newline -->
|
||||||
<xsl:text>
</xsl:text>
|
<xsl:text>
|
||||||
|
</xsl:text>
|
||||||
|
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
@ -55,4 +56,3 @@
|
|||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?xml version='1.0' encoding='ISO-8859-1'?>
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
<!DOCTYPE xsl:stylesheet [
|
<!DOCTYPE xsl:stylesheet [
|
||||||
<!ENTITY % general-entities SYSTEM "../general.ent">
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
||||||
%general-entities;
|
%general-entities;
|
||||||
@ -22,26 +22,30 @@ function copy
|
|||||||
cp $1 $2 >>copyerrs 2>&1
|
cp $1 $2 >>copyerrs 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
umask 002 

</xsl:text>
|
umask 002
|
||||||
|
|
||||||
<!-- Create dest.dir if it don't exist -->
|
# Create dest.dir if it doesn't exist
|
||||||
<xsl:text>install -d -m 775 -g lfswww </xsl:text>
|
# Remove old patches
|
||||||
|
# Copy the patches
|
||||||
|
# Ensure correct ownership
|
||||||
|
install -d -m 775 -g lfswww </xsl:text>
|
||||||
<xsl:value-of select="$dest.dir"/>
|
<xsl:value-of select="$dest.dir"/>
|
||||||
<xsl:text> &&
</xsl:text>
|
<xsl:text> &&
|
||||||
<xsl:text>cd </xsl:text>
|
cd </xsl:text>
|
||||||
<xsl:value-of select="$dest.dir"/>
|
<xsl:value-of select="$dest.dir"/>
|
||||||
<xsl:text> &&

</xsl:text>
|
<xsl:text> &&
|
||||||
<!-- Remove old patches -->
|
rm -f *.patch copyerrs &&
|
||||||
<xsl:text>rm -f *.patch copyerrs && 

</xsl:text>
|
|
||||||
|
</xsl:text>
|
||||||
<xsl:apply-templates/>
|
<xsl:apply-templates/>
|
||||||
<!-- Ensure correct owneship -->
|
|
||||||
<xsl:text>
chgrp lfswww *.patch &&
</xsl:text>
|
|
||||||
<xsl:text>
|
<xsl:text>
|
||||||
|
chgrp lfswww *.patch &&
|
||||||
if [ `wc -l copyerrs | sed 's/ *//' | cut -f1 -d' '` -gt 0 ]; then
|
if [ `wc -l copyerrs | sed 's/ *//' | cut -f1 -d' '` -gt 0 ]; then
|
||||||
mail -s "Missing LFS patches" lfs-book@lists.linuxfromscratch.org < copyerrs
|
mail -s "Missing LFS patches" lfs-book@lists.linuxfromscratch.org < copyerrs
|
||||||
fi

</xsl:text>
|
fi
|
||||||
|
|
||||||
<xsl:text>exit
</xsl:text>
|
exit
|
||||||
|
</xsl:text>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="//text()"/>
|
<xsl:template match="//text()"/>
|
||||||
@ -59,10 +63,11 @@ fi

</xsl:text>
|
|||||||
<xsl:value-of select="$cut"/>
|
<xsl:value-of select="$cut"/>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
<xsl:text>copy /srv/www/www.linuxfromscratch.org/patches/downloads/</xsl:text>
|
<xsl:text>copy /srv/www/www.linuxfromscratch.org/patches/downloads/</xsl:text>
|
||||||
<xsl:value-of select="substring-before($patch.name2, '-0')"/>
|
<xsl:value-of select="substring-before($patch.name2, '-0')"/>
|
||||||
<xsl:text>/</xsl:text>
|
<xsl:text>/</xsl:text>
|
||||||
<xsl:value-of select="$patch.name"/>
|
<xsl:value-of select="$patch.name"/>
|
||||||
<xsl:text> . 
</xsl:text>
|
<xsl:text> .
|
||||||
|
</xsl:text>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
@ -28,7 +28,8 @@
|
|||||||
<xsl:value-of select="@url"/>
|
<xsl:value-of select="@url"/>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
<xsl:text>
</xsl:text>
|
<xsl:text>
|
||||||
|
</xsl:text>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user