Changeset 0efb837 for BLFS


Ignore:
Timestamp:
07/26/2007 07:07:03 PM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
35d99d6
Parents:
d1ede32
Message:

BLFS: Changes to handle the new Xorg7 installation commands structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/libs/scripts.xsl

    rd1ede32 r0efb837  
    169169  <xsl:template match="sect2" mode="xorg7">
    170170    <xsl:choose>
    171       <xsl:when test="@role = 'package'"/>
     171      <xsl:when test="@role = 'package'">
     172        <xsl:apply-templates select="itemizedlist/listitem/para" mode="xorg7"/>
     173      </xsl:when>
    172174      <xsl:when test="not(@role)">
    173175        <xsl:apply-templates select=".//screen"/>
    174         <xsl:apply-templates select="../sect2[@role='package']/itemizedlist/listitem/para"
    175                              mode="xorg7"/>
    176         <xsl:text>WGET_LST=</xsl:text>
    177         <xsl:apply-templates select=".//screen" mode="wget_lst"/>
    178         <xsl:text>&#xA;</xsl:text>
     176        <xsl:apply-templates select="../sect2[@role='package']/itemizedlist/listitem/para" mode="xorg7-patch"/>
     177        <xsl:apply-templates select=".//screen" mode="sect-ver"/>
    179178      </xsl:when>
    180179      <xsl:when test="@role = 'installation'">
    181         <xsl:text>for package in $(cat $WGET_LST) ; do
     180        <xsl:text>for package in $(grep -v '^#' ../${sect-ver}.wget) ; do
    182181  packagedir=$(echo $package | sed 's/.tar.bz2//')
    183182  tar -xf $package
     
    191190        </xsl:if>
    192191        <xsl:text>ldconfig&#xA;&#xA;</xsl:text>
     192      </xsl:when>
     193      <xsl:when test="@role = 'configuration'">
     194        <xsl:apply-templates select=".//screen"/>
     195        <xsl:text>&#xA;</xsl:text>
    193196      </xsl:when>
    194197    </xsl:choose>
     
    392395
    393396  <xsl:template match="itemizedlist/listitem/para" mode="xorg7">
     397    <xsl:if test="contains(string(ulink/@url),'.md5') or
     398                  contains(string(ulink/@url),'.wget')">
     399      <xsl:text>wget </xsl:text>
     400      <xsl:value-of select="ulink/@url"/>
     401      <xsl:text>&#xA;</xsl:text>
     402    </xsl:if>
     403  </xsl:template>
     404
     405  <xsl:template match="itemizedlist/listitem/para" mode="xorg7-patch">
    394406    <xsl:if test="contains(string(ulink/@url),'.patch')">
    395407      <xsl:text>wget </xsl:text>
     
    414426  </xsl:template>
    415427
    416   <xsl:template match="screen" mode="wget_lst">
    417     <xsl:value-of select="substring-after(string(),' -i ')"/>
     428  <xsl:template match="screen" mode="sect-ver">
     429    <xsl:text>sect-ver=</xsl:text>
     430    <xsl:value-of select="substring-before(substring-after(string(),'-c ../'),'.md5')"/>
     431    <xsl:text>&#xA;</xsl:text>
    418432  </xsl:template>
    419433
Note: See TracChangeset for help on using the changeset viewer.