Author: manuel
Date: 2006-12-20 03:07:39 -0700 (Wed, 20 Dec 2006)
New Revision: 7884

Modified:
   trunk/BOOK/stylesheets/patcheslist.xsl
Log:
Fixed patcheslist.xsl to match current server paths.

Modified: trunk/BOOK/stylesheets/patcheslist.xsl
===================================================================
--- trunk/BOOK/stylesheets/patcheslist.xsl      2006-12-09 16:15:07 UTC (rev 
7883)
+++ trunk/BOOK/stylesheets/patcheslist.xsl      2006-12-20 10:07:39 UTC (rev 
7884)
@@ -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 @@
 }
 
 umask 002 &#x0a;&#x0a;</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 @@
 if [ `wc -l copyerrs | sed 's/ *//' | cut -f1 -d' '` -gt 0 ]; then
   mail -s "Missing LFS patches" [email protected] &lt; copyerrs
 fi&#x0a;&#x0a;</xsl:text>
-          
+
     <xsl:text>exit&#x0a;</xsl:text>
   </xsl:template>
 
@@ -48,17 +48,17 @@
 
   <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"/>

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to