Przeglądaj źródła

patcheslist.xsl: added a chgrp command and solvedan issue with the tetex dir & patch name.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3861 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Manuel Canales Esparcia 21 lat temu
rodzic
commit
7a4ac0ef9c
1 zmienionych plików z 9 dodań i 1 usunięć
  1. 9 1
      stylesheets/patcheslist.xsl

+ 9 - 1
stylesheets/patcheslist.xsl

@@ -18,6 +18,7 @@
     <xsl:text> &amp;&amp;&#x0a;&#x0a;</xsl:text>
     <xsl:text>  rm -f *.patch &amp;&amp;&#x0a;&#x0a;</xsl:text>
     <xsl:apply-templates/>
+    <xsl:text>&#x0a;  chgrp lfswww *.patch &amp;&amp;&#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>