Ignore:
Timestamp:
01/18/2024 07:42:26 PM (3 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
12.1, 12.1-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
Children:
7152faa
Parents:
9512d6c
git-author:
Pierre Labastie <pierre.labastie@…> (01/18/2024 07:35:28 PM)
git-committer:
Pierre Labastie <pierre.labastie@…> (01/18/2024 07:42:26 PM)
Message:

Remove all &#xxx; occurences

  • replace some characters by their utf-8 encoded equivalent (and change encoding in the <?xml?> line
  • replace &#xa; with a true newline char. This is somewhat more readable anyway.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/patcheslist.xsl

    r9512d6c r2a26a4f5  
    1 <?xml version='1.0' encoding='ISO-8859-1'?>
     1<?xml version='1.0' encoding='UTF-8'?>
    22<!DOCTYPE xsl:stylesheet [
    33 <!ENTITY % general-entities SYSTEM "../general.ent">
     
    2323}
    2424
    25 umask 002 &#x0a;&#x0a;</xsl:text>
     25umask 002
    2626
    27       <!-- Create dest.dir if it don't exist -->
    28     <xsl:text>install -d -m 775 -g lfswww </xsl:text>
     27# Create dest.dir if it doesn't exist
     28# Remove old patches
     29# Copy the patches
     30# Ensure correct ownership
     31install -d -m 775 -g lfswww </xsl:text>
    2932    <xsl:value-of select="$dest.dir"/>
    30     <xsl:text> &amp;&amp;&#x0a;</xsl:text>
    31     <xsl:text>cd </xsl:text>
     33    <xsl:text> &amp;&amp;
     34cd </xsl:text>
    3235    <xsl:value-of select="$dest.dir"/>
    33     <xsl:text> &amp;&amp;&#x0a;&#x0a;</xsl:text>
    34       <!-- Remove old patches -->
    35     <xsl:text>rm -f *.patch copyerrs &amp;&amp; &#x0a;&#x0a;</xsl:text>
     36    <xsl:text> &amp;&amp;
     37rm -f *.patch copyerrs &amp;&amp;
     38
     39</xsl:text>
    3640    <xsl:apply-templates/>
    37       <!-- Ensure correct owneship -->
    38     <xsl:text>&#x0a;chgrp lfswww *.patch &amp;&amp;&#x0a;</xsl:text>
    3941    <xsl:text>
     42chgrp lfswww *.patch &amp;&amp;
    4043if [ `wc -l copyerrs | sed 's/ *//' | cut -f1 -d' '` -gt 0 ]; then
    4144  mail -s "Missing LFS patches" lfs-book@lists.linuxfromscratch.org &lt; copyerrs
    42 fi&#x0a;&#x0a;</xsl:text>
     45fi
    4346
    44     <xsl:text>exit&#x0a;</xsl:text>
     47exit
     48</xsl:text>
    4549  </xsl:template>
    4650
     
    6064      </xsl:variable>
    6165      <xsl:text>copy /srv/www/www.linuxfromscratch.org/patches/downloads/</xsl:text>
    62           <xsl:value-of select="substring-before($patch.name2, '-0')"/>
     66      <xsl:value-of select="substring-before($patch.name2, '-0')"/>
    6367      <xsl:text>/</xsl:text>
    6468      <xsl:value-of select="$patch.name"/>
    65       <xsl:text> . &#x0a;</xsl:text>
     69      <xsl:text> .
     70</xsl:text>
    6671    </xsl:if>
    6772  </xsl:template>
Note: See TracChangeset for help on using the changeset viewer.