diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2006-12-20 10:07:39 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2006-12-20 10:07:39 +0000 |
commit | 2159d608ff87885282a59a704f88ac63d3098741 (patch) | |
tree | 56040a95def6a8f8c912a3c1d920d43df32badc8 | |
parent | 390e32cb79dc37ee15bc0effbbb6104404c7b12b (diff) |
Fixed patcheslist.xsl to match current server paths.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7884 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r-- | stylesheets/patcheslist.xsl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/stylesheets/patcheslist.xsl b/stylesheets/patcheslist.xsl index 3946ae52c..8ef3e6de2 100644 --- a/stylesheets/patcheslist.xsl +++ b/stylesheets/patcheslist.xsl @@ -11,7 +11,7 @@ <!-- Allow select the dest dir at runtime --> <xsl:param name="dest.dir"> - <xsl:value-of select="concat('/home/httpd/', substring-after('&patches-root;', 'http://'))"/> + <xsl:value-of select="concat('/srv/www/', substring-after('&patches-root;', 'http://'))"/> </xsl:param> <xsl:template match="/"> @@ -23,7 +23,7 @@ function copy } 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"/> @@ -40,7 +40,7 @@ umask 002 

</xsl:text> if [ `wc -l copyerrs | sed 's/ *//' | cut -f1 -d' '` -gt 0 ]; then mail -s "Missing LFS patches" lfs-book@linuxfromscratch.org < copyerrs fi

</xsl:text> - + <xsl:text>exit
</xsl:text> </xsl:template> @@ -48,17 +48,17 @@ fi

</xsl: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;') + <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" + <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 /home/httpd/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:text>/</xsl:text> <xsl:value-of select="$patch.name"/> |