Changeset e5612bb


Ignore:
Timestamp:
08/15/2006 05:29:21 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
c5a6f21
Parents:
8946876
Message:

Merged r2964:2965 from trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/libs/scripts.xsl

    r8946876 re5612bb  
    2020
    2121  <xsl:template match="sect1">
    22     <xsl:if test="@id != 'locale-issues' and
    23                   (count(descendant::screen/userinput) &gt; 0 and
     22    <xsl:if test="(count(descendant::screen/userinput) &gt; 0 and
    2423                  count(descendant::screen/userinput) &gt;
    25                   count(descendant::screen[@role='nodump']))">
     24                  count(descendant::screen[@role='nodump'])) and
     25                  @id != 'locale-issues' and @id != 'xorg7' and
     26                  @id != 'x-setup'">
    2627
    2728        <!-- The file names -->
     
    9192        <xsl:choose>
    9293          <!-- Package page -->
    93           <xsl:when test="sect2[@role='package']">
     94          <xsl:when test="sect2[@role='package'] and not(@id = 'xorg7-app' or
     95                          @id = 'xorg7-data' or @id = 'xorg7-driver' or
     96                          @id = 'xorg7-font' or @id = 'xorg7-lib' or
     97                          @id = 'xorg7-proto' or @id = 'xorg7-util')">
    9498            <!-- Variables -->
    9599            <xsl:text>SRC_ARCHIVE=$SRC_ARCHIVE&#xA;</xsl:text>
     
    108112            <xsl:text>rm -rf $UNPACKDIR unpacked&#xA;&#xA;</xsl:text>
    109113          </xsl:when>
     114          <!-- Xorg7 pseudo-packages -->
     115          <xsl:when test="contains(@id,'xorg7') and not(@id = 'xorg7-server')">
     116            <xsl:text>SRC_DIR=$SRC_DIR
     117
     118cd $SRC_DIR
     119mkdir -p xc
     120cd xc&#xA;</xsl:text>
     121            <xsl:apply-templates select="sect2" mode="xorg7"/>
     122          </xsl:when>
    110123          <!-- Non-package page -->
    111124          <xsl:otherwise>
     
    152165        <xsl:apply-templates select=".//screen"/>
    153166        <xsl:text>&#xA;</xsl:text>
     167      </xsl:when>
     168    </xsl:choose>
     169  </xsl:template>
     170
     171  <xsl:template match="sect2" mode="xorg7">
     172    <xsl:choose>
     173      <xsl:when test="@role = 'package'"/>
     174      <xsl:when test="not(@role)">
     175        <xsl:apply-templates select=".//screen"/>
     176        <xsl:apply-templates select="../sect2[@role='package']/itemizedlist/listitem/para"
     177                             mode="xorg7"/>
     178        <xsl:text>WGET_LST=</xsl:text>
     179        <xsl:apply-templates select=".//screen" mode="wget_lst"/>
     180        <xsl:text>&#xA;</xsl:text>
     181      </xsl:when>
     182      <xsl:when test="@role = 'installation'">
     183        <xsl:text>for package in $(cat $WGET_LST) ; do
     184  packagedir=$(echo $package | sed 's/.tar.bz2//')
     185  tar -xf $package
     186  cd $packagedir&#xA;</xsl:text>
     187        <xsl:apply-templates select=".//screen | .//para/command"/>
     188        <xsl:text>  cd ..
     189  rm -rf $packagedir
     190done&#xA;</xsl:text>
     191        <xsl:if test="$sudo = 'y'">
     192          <xsl:text>sudo </xsl:text>
     193        </xsl:if>
     194        <xsl:text>ldconfig&#xA;&#xA;</xsl:text>
    154195      </xsl:when>
    155196    </xsl:choose>
     
    346387  </xsl:template>
    347388
     389  <xsl:template match="itemizedlist/listitem/para" mode="xorg7">
     390    <xsl:if test="contains(string(ulink/@url),'.patch')">
     391      <xsl:text>wget </xsl:text>
     392      <xsl:value-of select="ulink/@url"/>
     393      <xsl:text>&#xA;</xsl:text>
     394    </xsl:if>
     395  </xsl:template>
     396
    348397<!--======================== Commands code ==========================-->
    349398
     
    361410  </xsl:template>
    362411
     412  <xsl:template match="screen" mode="wget_lst">
     413    <xsl:value-of select="substring-after(string(),' -i ')"/>
     414  </xsl:template>
     415
    363416  <xsl:template match="para/command">
    364417    <xsl:if test="(contains(string(),'test') or
Note: See TracChangeset for help on using the changeset viewer.