diff options
Diffstat (limited to 'stylesheets/patcheslist.xsl')
-rw-r--r-- | stylesheets/patcheslist.xsl | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/stylesheets/patcheslist.xsl b/stylesheets/patcheslist.xsl index d86d1814d..f863edc1f 100644 --- a/stylesheets/patcheslist.xsl +++ b/stylesheets/patcheslist.xsl @@ -1,4 +1,4 @@ -<?xml version='1.0' encoding='ISO-8859-1'?> +<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE xsl:stylesheet [ <!ENTITY % general-entities SYSTEM "../general.ent"> %general-entities; @@ -22,26 +22,30 @@ function copy cp $1 $2 >>copyerrs 2>&1 } -umask 002 

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

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

</xsl:text> + <xsl:text> && +rm -f *.patch copyerrs && + +</xsl:text> <xsl:apply-templates/> - <!-- Ensure correct owneship --> - <xsl:text>
chgrp lfswww *.patch &&
</xsl:text> <xsl:text> +chgrp lfswww *.patch && if [ `wc -l copyerrs | sed 's/ *//' | cut -f1 -d' '` -gt 0 ]; then 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 match="//text()"/> @@ -59,10 +63,11 @@ fi

</xsl:text> <xsl:value-of select="$cut"/> </xsl:variable> <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:value-of select="$patch.name"/> - <xsl:text> . 
</xsl:text> + <xsl:text> . +</xsl:text> </xsl:if> </xsl:template> |