Changeset f83bcee


Ignore:
Timestamp:
07/30/2006 10:10:33 AM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
da49058
Parents:
9272545
Message:

Revised hlfs.xsl.
May contains some bug yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • HLFS/hlfs.xsl

    r9272545 rf83bcee  
    2727       1 = only chapter06 Glibc, GCC and Binutils testsuites
    2828       2 = all chapter06 testsuites
    29        3 = all chapter05 and chapter06 testsuites-->
     29       3 = alias to 2 -->
    3030  <xsl:param name="testsuite" select="1"/>
    3131
     
    100100             <xsl:text>pushd ../; tar -xvf gettext-&gettext-version;.*; popd; &#xA;</xsl:text>
    101101          </xsl:if>
    102          
     102
    103103          <!-- NEW toolchain format, from inside ./sources dir unpack binutils and gcc -->
    104           <xsl:if test="@id='ch-tools-embryo-toolchain'">
     104          <xsl:if test="@id='ch-tools-embryo-toolchain' or
     105                        @id='ch-tools-cocoon-toolchain' or
     106                        @id='ch-system-butterfly-toolchain'">
    105107             <xsl:text>tar -xvf gcc-core-&gcc-version;.*; &#xA;</xsl:text>
    106108             <xsl:text>tar -xvf gcc-g++-&gcc-version;.*; &#xA;</xsl:text>
    107109             <xsl:text>tar -xvf binutils-&binutils-version;.*; &#xA;</xsl:text>
    108110          </xsl:if>
    109           <xsl:if test="@id='ch-tools-cocoon-toolchain'">
    110              <xsl:text>tar -xvf gcc-core-&gcc-version;.*; &#xA;</xsl:text>
    111              <xsl:text>tar -xvf gcc-g++-&gcc-version;.*; &#xA;</xsl:text>
    112              <xsl:text>tar -xvf binutils-&binutils-version;.*; &#xA;</xsl:text>
    113           </xsl:if>
    114           <xsl:if test="@id='ch-system-butterfly-toolchain'">
    115              <xsl:text>tar -xvf gcc-core-&gcc-version;.*; &#xA;</xsl:text>
    116              <xsl:text>tar -xvf gcc-g++-&gcc-version;.*; &#xA;</xsl:text>
    117              <xsl:text>tar -xvf binutils-&binutils-version;.*; &#xA;</xsl:text>
    118           </xsl:if>
    119111          <!-- ONLY butterfly has a testsuite -->
    120           <xsl:if test="@id='ch-tools-butterfly-toolchain' and $testsuite = '3'">
     112          <xsl:if test="@id='ch-tools-butterfly-toolchain' and $testsuite != '0'">
    121113            <xsl:text>tar -xvf gcc-testsuite-&gcc-version;.*; &#xA;</xsl:text>
    122114          </xsl:if>
    123115          <!-- END new toolchain format -->
    124          
     116
    125117          <xsl:if test="@id='bootable-bootscripts'">
    126118             <xsl:text>pushd ../; tar -xvf blfs-bootscripts-&blfs-bootscripts-version;.* ; popd; &#xA;</xsl:text>
     
    133125  </xsl:template>
    134126
    135   <xsl:template match="literal">
    136     <xsl:if test="@condition=$model or not(@condition)">
    137       <xsl:apply-templates/>
    138     </xsl:if>
    139   </xsl:template>
    140  
    141127  <xsl:template match="screen">
    142128    <xsl:if test="(@condition=$model or not(@condition)) and
     
    148134  <xsl:template match="para/userinput">
    149135    <xsl:if test="(contains(string(),'test') or
    150             contains(string(),'check')) and
    151             (($testsuite = '1' and
    152             (ancestor::sect1[@id='ch-system-gcc'] or
    153             ancestor::sect1[@id='ch-system-glibc'])) or
    154             ($testsuite = '2' and
    155             ancestor::chapter[@id='chapter-building-system']) or
    156             $testsuite = '3')">
    157       <xsl:choose>
    158         <xsl:when test="ancestor::sect1[@id='ch-system-gcc']">
    159           <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    160         </xsl:when>
    161         <xsl:otherwise>
    162           <xsl:value-of select="substring-before(string(),'make')"/>
    163           <xsl:text>make -k</xsl:text>
    164           <xsl:value-of select="substring-after(string(),'make')"/>
    165           <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    166         </xsl:otherwise>
    167       </xsl:choose>
     136                  contains(string(),'check')) and
     137                  ($testsuite = '2' or $testsuite = '3')">
     138      <xsl:value-of select="substring-before(string(),'make')"/>
     139      <xsl:text>make -k</xsl:text>
     140      <xsl:value-of select="substring-after(string(),'make')"/>
     141      <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    168142    </xsl:if>
    169143  </xsl:template>
     
    201175        <xsl:text>&#xA;</xsl:text>
    202176      </xsl:when>
    203 
    204 
    205177      <!-- Fixing bootscripts installation -->
    206178      <xsl:when test="ancestor::sect1[@id='bootable-bootscripts'] and
     
    242214        </xsl:choose>
    243215      </xsl:when>
    244 
    245       <!-- Fixing toolchain test suites run -->
    246       <xsl:when test="string() = 'make check' or
    247                 string() = 'make -k check'">
    248         <xsl:choose>
    249           <xsl:when test="(($testsuite = '1' or $testsuite = '2') and
    250                     ancestor::chapter[@id='chapter-building-system']) or
    251                     $testsuite = '3'">
     216      <!-- Fixing butterfly toolchain test suites run -->
     217      <xsl:when test="string() = 'make -k check'">
     218        <xsl:choose>
     219          <xsl:when test="$testsuite != '0'">
    252220            <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    253221          </xsl:when>
    254222        </xsl:choose>
    255223      </xsl:when>
    256 
    257       <!-- Disable any glibc checks  -->
    258       <xsl:when test="contains(string(),'gcc -fno-stack-protector') and
    259                 ancestor::sect1[@id='ch-system-glibc']
    260                 and $testsuite = '0'"/>
    261 
     224      <!-- Fixing Glbc test suite  -->
     225      <xsl:when test="contains(string(),'glibc-check-log')">
     226        <xsl:choose>
     227          <xsl:when test="$testsuite != '0'">
     228            <xsl:value-of select="substring-before(string(),'&gt; glibc-')"/>
     229            <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
     230          </xsl:when>
     231        </xsl:choose>
     232      </xsl:when>
    262233      <!-- Don't stop on strip run and chapter05 GCC installation test-->
    263234      <xsl:when test="contains(string(),'strip ') or
     
    267238        <xsl:text> || true&#xA;</xsl:text>
    268239      </xsl:when>
    269 
    270240      <!-- The rest of commands -->
    271241      <xsl:otherwise>
     
    274244      </xsl:otherwise>
    275245    </xsl:choose>
     246  </xsl:template>
     247
     248  <xsl:template match="literal">
     249    <xsl:if test="@condition=$model or not(@condition)">
     250      <xsl:apply-templates/>
     251    </xsl:if>
    276252  </xsl:template>
    277253
Note: See TracChangeset for help on using the changeset viewer.