blob: a8a485478c4a374a5423f461b868c8dde1cd47f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<?xml version='1.0' encoding='ISO-8859-1'?>
<!-- This work against BLFS also -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text"/>
<xsl:param name="links.directory">lfs/cvs/unstable/</xsl:param>
<xsl:param name="deep.to.dowloads">../../../</xsl:param>
<xsl:template match="/">
<xsl:text>#! /bin/bash
cd /home/httpd/www.linuxfromscratch.org/patches/</xsl:text>
<xsl:value-of select="$links.directory"/>
<xsl:text> &&

</xsl:text>
<xsl:text> rm -f *.patch &&

</xsl:text>
<xsl:apply-templates/>
<xsl:text>
 exit</xsl:text>
</xsl:template>
<xsl:template match="//text()">
<xsl:text/>
</xsl:template>
<xsl:template match="//ulink">
<xsl:if test="contains(@url, '.patch') and contains(@url, 'linuxfromscratch')">
<xsl:text> ln -s </xsl:text>
<xsl:value-of select="$deep.to.dowloads"/>
<xsl:text>dowloads/</xsl:text>
<xsl:value-of select="substring-before (substring-after(@url, $links.directory), '-')"/>
<xsl:text>/</xsl:text>
<xsl:value-of select="substring-after(@url, $links.directory)"/>
<xsl:text> &&
</xsl:text>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
|