Author: manuel Date: 2007-04-16 15:55:31 -0600 (Mon, 16 Apr 2007) New Revision: 8076
Removed: branches/new-xsl/patcheslist.xsl branches/new-xsl/wget-list.xsl Log: Removed two files that are not related with the DocBook-XSL update. Deleted: branches/new-xsl/patcheslist.xsl =================================================================== --- branches/new-xsl/patcheslist.xsl 2007-04-16 21:46:35 UTC (rev 8075) +++ branches/new-xsl/patcheslist.xsl 2007-04-16 21:55:31 UTC (rev 8076) @@ -1,69 +0,0 @@ -<?xml version='1.0' encoding='ISO-8859-1'?> -<!DOCTYPE xsl:stylesheet [ - <!ENTITY % general-entities SYSTEM "../general.ent"> - %general-entities; -]> - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - version="1.0"> - - <xsl:output method="text"/> - - <!-- Allow select the dest dir at runtime --> - <xsl:param name="dest.dir"> - <xsl:value-of select="concat('/srv/www/', substring-after('&patches-root;', 'http://'))"/> - </xsl:param> - - <xsl:template match="/"> - <xsl:text>#! /bin/bash - -function copy -{ - cp $1 $2 >>copyerrs 2>&1 -} - -umask 002 

</xsl:text> - - <!-- Create dest.dir if it don't exist --> - <xsl:text>install -d -m 775 -g lfswww </xsl:text> - <xsl:value-of select="$dest.dir"/> - <xsl:text> &&
</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:apply-templates/> - <!-- Ensure correct owneship --> - <xsl:text>
chgrp lfswww *.patch &&
</xsl:text> - <xsl:text> -if [ `wc -l copyerrs | sed 's/ *//' | cut -f1 -d' '` -gt 0 ]; then - mail -s "Missing LFS patches" [email protected] < copyerrs -fi

</xsl:text> - - <xsl:text>exit
</xsl:text> - </xsl:template> - - <xsl:template match="//text()"/> - - <xsl:template match="//ulink"> - <!-- Match only local patches links and skip duplicated URLs splitted for PDF output--> - <xsl:if test="contains(@url, '.patch') and contains(@url, '&patches-root;') - and not(ancestor-or-self::*/@condition = 'pdf')"> - <xsl:variable name="patch.name" select="substring-after(@url, '&patches-root;')"/> - <xsl:variable name="cut" - select="translate(substring-after($patch.name, '-'), '0123456789', '0000000000')"/> - <xsl:variable name="patch.name2"> - <xsl:value-of select="substring-before($patch.name, '-')"/> - <xsl:text>-</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:text>/</xsl:text> - <xsl:value-of select="$patch.name"/> - <xsl:text> . 
</xsl:text> - </xsl:if> - </xsl:template> - -</xsl:stylesheet> Deleted: branches/new-xsl/wget-list.xsl =================================================================== --- branches/new-xsl/wget-list.xsl 2007-04-16 21:46:35 UTC (rev 8075) +++ branches/new-xsl/wget-list.xsl 2007-04-16 21:55:31 UTC (rev 8076) @@ -1,35 +0,0 @@ -<?xml version='1.0' encoding='ISO-8859-1'?> - -<!-- Create a list of upstream URLs for packages and patches to be used - with wget. --> - -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - version="1.0"> - - <xsl:output method="text"/> - - <xsl:template match="/"> - <xsl:apply-templates select="//ulink"/> - </xsl:template> - - <xsl:template match="ulink"> - <!-- If some package don't have the predefined strings in their - name, the next test must be fixed to match it also. Skip possible - duplicated URLs due that may be splitted for PDF output --> - <xsl:if test="(contains(@url, '.tar.') or contains(@url, '.tgz') - or contains(@url, '.patch')) and - not(ancestor-or-self::*/@condition = 'pdf')"> - <xsl:choose> - <xsl:when test="contains(@url,'?download')"> - <xsl:value-of select="substring-before(@url,'?download')"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select="@url"/> - </xsl:otherwise> - </xsl:choose> - <xsl:text>
</xsl:text> - </xsl:if> - </xsl:template> - -</xsl:stylesheet> - -- http://linuxfromscratch.org/mailman/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
