Changeset 7884

Show
Ignore:
Timestamp:
12/20/06 03:07:39 (2 years ago)
Author:
manuel
Message:

Fixed patcheslist.xsl to match current server paths.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/BOOK/stylesheets/patcheslist.xsl

    r7373 r7884  
    1212    <!-- Allow select the dest dir at runtime --> 
    1313  <xsl:param name="dest.dir"> 
    14     <xsl:value-of select="concat('/home/httpd/', substring-after('&patches-root;', 'http://'))"/> 
     14    <xsl:value-of select="concat('/srv/www/', substring-after('&patches-root;', 'http://'))"/> 
    1515  </xsl:param> 
    1616 
     
    2424 
    2525umask 002 &#x0a;&#x0a;</xsl:text> 
    26                 
     26 
    2727      <!-- Create dest.dir if it don't exist --> 
    2828    <xsl:text>install -d -m 775 -g lfswww </xsl:text> 
     
    4141  mail -s "Missing LFS patches" lfs-book@linuxfromscratch.org &lt; copyerrs 
    4242fi&#x0a;&#x0a;</xsl:text> 
    43            
     43 
    4444    <xsl:text>exit&#x0a;</xsl:text> 
    4545  </xsl:template> 
     
    4949  <xsl:template match="//ulink"> 
    5050      <!-- Match only local patches links and skip duplicated URLs splitted for PDF output--> 
    51     <xsl:if test="contains(@url, '.patch') and contains(@url, '&patches-root;')  
     51    <xsl:if test="contains(@url, '.patch') and contains(@url, '&patches-root;') 
    5252            and not(ancestor-or-self::*/@condition = 'pdf')"> 
    5353      <xsl:variable name="patch.name" select="substring-after(@url, '&patches-root;')"/> 
    54       <xsl:variable name="cut"  
     54      <xsl:variable name="cut" 
    5555              select="translate(substring-after($patch.name, '-'), '0123456789', '0000000000')"/> 
    5656      <xsl:variable name="patch.name2"> 
     
    5959        <xsl:value-of select="$cut"/> 
    6060      </xsl:variable> 
    61       <xsl:text>copy /home/httpd/www.linuxfromscratch.org/patches/downloads/</xsl:text> 
     61      <xsl:text>copy /srv/www/www.linuxfromscratch.org/patches/downloads/</xsl:text> 
    6262          <xsl:value-of select="substring-before($patch.name2, '-0')"/> 
    6363      <xsl:text>/</xsl:text>