Changeset b45f723


Ignore:
Timestamp:
08/15/2006 05:00:43 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
5be3651
Parents:
a1f1969
Message:

Trying to fix Xorg7 build scripts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/libs/scripts.xsl

    ra1f1969 rb45f723  
    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:text>WGET_LST=</xsl:text>
     177        <xsl:apply-templates select=".//screen" mode="wget_lst"/>
     178        <xsl:text>&#xA;</xsl:text>
     179      </xsl:when>
     180      <xsl:when test="@role = 'installation'">
     181        <xsl:text>for package in $(cat $WGET_LST) ; do
     182  packagedir=$(echo $package | sed 's/.tar.bz2//')
     183  tar -xf $package
     184  cd $packagedir&#xA;</xsl:text>
     185        <xsl:apply-templates select=".//screen | .//para/command"/>
     186        <xsl:text>cd ..
     187  rm -rf $packagedir
     188done&#xA;</xsl:text>
     189        <xsl:if test="$sudo = 'y'">
     190          <xsl:text>sudo </xsl:text>
     191        </xsl:if>
     192        <xsl:text>ldconfig&#xA;&#xA;</xsl:text>
    154193      </xsl:when>
    155194    </xsl:choose>
     
    361400  </xsl:template>
    362401
     402  <xsl:template match="screen" mode="wget_lst">
     403    <xsl:value-of select="substring-after(string(),' -i ')"/>
     404  </xsl:template>
     405
    363406  <xsl:template match="para/command">
    364407    <xsl:if test="(contains(string(),'test') or
Note: See TracChangeset for help on using the changeset viewer.