r2965 - jhalfs/trunk/BLFS/libs

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Tue Aug 15 10:23:40 PDT 2006


Author: manuel
Date: 2006-08-15 11:23:39 -0600 (Tue, 15 Aug 2006)
New Revision: 2965

Modified:
   jhalfs/trunk/BLFS/libs/scripts.xsl
Log:
Fixed Xorg7 patches download.

Modified: jhalfs/trunk/BLFS/libs/scripts.xsl
===================================================================
--- jhalfs/trunk/BLFS/libs/scripts.xsl	2006-08-15 17:00:43 UTC (rev 2964)
+++ jhalfs/trunk/BLFS/libs/scripts.xsl	2006-08-15 17:23:39 UTC (rev 2965)
@@ -173,6 +173,8 @@
       <xsl:when test="@role = 'package'"/>
       <xsl:when test="not(@role)">
         <xsl:apply-templates select=".//screen"/>
+        <xsl:apply-templates select="../sect2[@role='package']/itemizedlist/listitem/para"
+                             mode="xorg7"/>
         <xsl:text>WGET_LST=</xsl:text>
         <xsl:apply-templates select=".//screen" mode="wget_lst"/>
         <xsl:text>&#xA;</xsl:text>
@@ -183,7 +185,7 @@
   tar -xf $package
   cd $packagedir&#xA;</xsl:text>
         <xsl:apply-templates select=".//screen | .//para/command"/>
-        <xsl:text>cd ..
+        <xsl:text>  cd ..
   rm -rf $packagedir
 done&#xA;</xsl:text>
         <xsl:if test="$sudo = 'y'">
@@ -384,6 +386,14 @@
     </xsl:choose>
   </xsl:template>
 
+  <xsl:template match="itemizedlist/listitem/para" mode="xorg7">
+    <xsl:if test="contains(string(ulink/@url),'.patch')">
+      <xsl:text>wget </xsl:text>
+      <xsl:value-of select="ulink/@url"/>
+      <xsl:text>&#xA;</xsl:text>
+    </xsl:if>
+  </xsl:template>
+
 <!--======================== Commands code ==========================-->
 
   <xsl:template match="screen">




More information about the alfs-log mailing list