mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-31 03:11:57 +00:00
Modified the patcheslist.xsl stylesheet to ouput a customizable shell script.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3732 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
574b0eabcc
commit
07f719a2fa
@ -1,20 +1,38 @@
|
|||||||
<?xml version='1.0' encoding='ISO-8859-1'?>
|
<?xml version='1.0' encoding='ISO-8859-1'?>
|
||||||
|
|
||||||
<!-- This also work again BLFS -->
|
<!-- This work against BLFS also -->
|
||||||
|
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
version="1.0">
|
version="1.0">
|
||||||
|
|
||||||
<xsl:output method="text"/>
|
<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:apply-templates/>
|
||||||
|
<xsl:text>
 exit</xsl:text>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="//text()">
|
<xsl:template match="//text()">
|
||||||
<xsl:text/>
|
<xsl:text/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="//ulink">
|
<xsl:template match="//ulink">
|
||||||
<xsl:if test="contains(@url, '.patch')">
|
<xsl:if test="contains(@url, '.patch') and contains(@url, 'linuxfromscratch')">
|
||||||
<xsl:value-of select="@url"/>
|
<xsl:text> ln -s </xsl:text>
|
||||||
<xsl:text>
</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:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user