Changeset a82bbc0 for HLFS/hlfs.xsl


Ignore:
Timestamp:
07/28/2006 12:44:37 PM (18 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
experimental
Children:
d0249fc
Parents:
21dab83
Message:

Moved some toolchain code to xsl script, clearer method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • HLFS/hlfs.xsl

    r21dab83 ra82bbc0  
    9595        </xsl:choose>
    9696        <xsl:if test="(sect2[@role='installation'] and
    97                      not(@id='bootable-kernel'))">
     97                           not(@id='bootable-kernel'))">
    9898          <xsl:text>cd $PKGDIR&#xA;</xsl:text>
    9999          <xsl:if test="@id='ch-tools-uclibc' or @id='ch-system-uclibc'">
    100100             <xsl:text>pushd ../; tar -xvf gettext-&gettext-version;.*; popd; &#xA;</xsl:text>
    101101          </xsl:if>
    102           <xsl:if test="@id='ch-tools-glibc' or @id='ch-system-glibc'">
     102         
     103          <xsl:if test="@id='ch-tools-glibc' or @id='ch-system-glibc'">
    103104             <xsl:text>tar -xvf ../glibc-libidn-&glibc-version;.*&#xA;</xsl:text>
    104105          </xsl:if>
    105           <xsl:if test="@id='ch-tools-gcc' or @id='ch-system-gcc'">
    106              <xsl:text>pushd ../; tar -xvf gcc-g++-&gcc-version;.*; popd; &#xA;</xsl:text>
    107           </xsl:if>
    108           <xsl:if test="@id='ch-tools-gcc' and $testsuite = '3'">
     106         
     107          <!-- NEW toolchain format -->
     108          <xsl:if test="@id='ch-tools-embryo-toolchain'">
     109             <xsl:text>tar -xvf gcc-core-&gcc-version;.*; &#xA;</xsl:text>
     110             <xsl:text>tar -xvf gcc-g++-&gcc-version;.*; &#xA;</xsl:text>
     111             <xsl:text>tar -xvf binutils-&binutils-version;.*; &#xA;</xsl:text>
     112          </xsl:if>
     113          <xsl:if test="@id='ch-tools-cocoon-toolchain'">
     114             <xsl:text>tar -xvf gcc-core-&gcc-version;.*; &#xA;</xsl:text>
     115             <xsl:text>tar -xvf gcc-g++-&gcc-version;.*; &#xA;</xsl:text>
     116             <xsl:text>tar -xvf binutils-&binutils-version;.*; &#xA;</xsl:text>
     117          </xsl:if>
     118          <xsl:if test="@id='ch-system-butterfly-toolchain'">
     119             <xsl:text>tar -xvf gcc-core-&gcc-version;.*; &#xA;</xsl:text>
     120             <xsl:text>tar -xvf gcc-g++-&gcc-version;.*; &#xA;</xsl:text>
     121             <xsl:text>tar -xvf binutils-&binutils-version;.*; &#xA;</xsl:text>
     122          </xsl:if>
     123          <!-- ONLY butterfly has a testsuite -->
     124          <xsl:if test="@id='ch-tools-butterfly-toolchain' and $testsuite = '3'">
    109125            <xsl:text>pushd ../; tar -xvf gcc-testsuite-&gcc-version;.*; popd; &#xA;</xsl:text>
    110126          </xsl:if>
    111           <xsl:if test="@id='ch-system-gcc' and $testsuite != '0'">
    112             <xsl:text>pushd ../; tar -xvf gcc-testsuite-&gcc-version;.*; popd; &#xA;</xsl:text>
    113           </xsl:if>
     127          <!-- END new toolchain format -->
     128         
    114129          <xsl:if test="@id='bootable-bootscripts'">
    115130             <xsl:text>pushd ../; tar -xvf blfs-bootscripts-&blfs-bootscripts-version;.* ; popd; &#xA;</xsl:text>
     
    190205        <xsl:text>&#xA;</xsl:text>
    191206      </xsl:when>
     207
     208
    192209      <!-- Fixing bootscripts installation -->
    193210      <xsl:when test="ancestor::sect1[@id='bootable-bootscripts'] and
Note: See TracChangeset for help on using the changeset viewer.