r3861 - trunk/BOOK/stylesheets

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Mon Jun 28 12:00:53 PDT 2004


Author: manuel
Date: 2004-06-28 13:00:51 -0600 (Mon, 28 Jun 2004)
New Revision: 3861

Modified:
   trunk/BOOK/stylesheets/patcheslist.xsl
Log:
patcheslist.xsl: added a chgrp command and solvedan issue with the tetex dir & patch name.

Modified: trunk/BOOK/stylesheets/patcheslist.xsl
===================================================================
--- trunk/BOOK/stylesheets/patcheslist.xsl	2004-06-28 18:45:35 UTC (rev 3860)
+++ trunk/BOOK/stylesheets/patcheslist.xsl	2004-06-28 19:00:51 UTC (rev 3861)
@@ -18,6 +18,7 @@
     <xsl:text> &&&#x0a;&#x0a;</xsl:text>
     <xsl:text>  rm -f *.patch &&&#x0a;&#x0a;</xsl:text>
     <xsl:apply-templates/>
+    <xsl:text>&#x0a;  chgrp lfswww *.patch &&&#x0a;</xsl:text>
     <xsl:text>&#x0a;  exit</xsl:text>
   </xsl:template>
 
@@ -37,7 +38,14 @@
             <xsl:value-of select="substring-before (substring-after($cut, $links.directory), ',2')"/>
           </xsl:when>
           <xsl:otherwise>
-            <xsl:value-of select="substring-before (substring-after($cut, $links.directory), '-2')"/>
+            <xsl:choose>
+              <xsl:when test="contains ($cut, '-src-2')">
+                <xsl:value-of select="substring-before (substring-after($cut, $links.directory), '-src-2')"/>
+              </xsl:when>
+              <xsl:otherwise>
+                <xsl:value-of select="substring-before (substring-after($cut, $links.directory), '-2')"/>
+              </xsl:otherwise>
+            </xsl:choose>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:if>




More information about the lfs-book mailing list