Changeset 9c9775f for CLFS/clfs.xsl


Ignore:
Timestamp:
09/19/2007 04:50:48 PM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
3778352
Parents:
0510381
Message:

Updated experimental branch to current trunk code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLFS/clfs.xsl

    r0510381 r9c9775f  
    4242  <!-- Locale settings -->
    4343  <xsl:param name="lang" select="C"/>
     44
     45  <!-- Sparc64 processor type -->
     46  <xsl:param name="sparc" select="none"/>
    4447
    4548  <xsl:template match="/">
     
    8891          <exsl:document href="{$dirname}/{$order}-{$filename}" method="text">
    8992            <xsl:choose>
    90               <xsl:when test="../@id='chapter-chroot'">
    91                 <xsl:text>#!/tools/bin/bash&#xA;set -e&#xA;&#xA;</xsl:text>
    92               </xsl:when>
    93               <xsl:when test="@id='ch-system-stripping'">
    94                 <xsl:text>#!/bin/sh&#xA;</xsl:text>
     93              <xsl:when test="@id='ch-chroot-changingowner' or
     94                        @id='ch-chroot-creatingdirs' or
     95                        @id='ch-chroot-createfiles' or
     96                        @id='ch-system-stripping'">
     97                <xsl:text>#!/tools/bin/bash&#xA;set +h&#xA;</xsl:text>
    9598              </xsl:when>
    9699              <xsl:otherwise>
    97                 <xsl:text>#!/bin/sh&#xA;set -e&#xA;&#xA;</xsl:text>
     100                <xsl:text>#!/bin/bash&#xA;set +h&#xA;</xsl:text>
    98101              </xsl:otherwise>
    99102            </xsl:choose>
    100             <xsl:if test="sect2[@role='installation']">
     103            <xsl:if test="not(@id='ch-system-stripping')">
     104              <xsl:text>set -e</xsl:text>
     105            </xsl:if>
     106            <xsl:text>&#xA;</xsl:text>
     107            <xsl:if test="sect2[@role='installation'] and
     108                          not(@id='ch-system-multiarch-wrapper')">
    101109              <xsl:text>cd $PKGDIR&#xA;</xsl:text>
    102110              <xsl:if test="@id='ch-system-vim' and $vim-lang = 'y'">
     
    105113            </xsl:if>
    106114            <xsl:apply-templates select=".//para/userinput | .//screen"/>
     115            <xsl:if test="not(@id='ch-chroot-chroot')">
     116              <xsl:text>echo -e "\n\nTotalseconds: $SECONDS\n"&#xA;</xsl:text>
     117            </xsl:if>
    107118            <xsl:text>exit</xsl:text>
    108119          </exsl:document>
     
    150161        <xsl:text>&#xA;</xsl:text>
    151162      </xsl:when>
    152       <!-- Avoiding a race condition in a patch -->
    153       <xsl:when test="contains(string(),'debian_fixes')">
    154         <xsl:value-of select="substring-before(string(),'patch')"/>
    155         <xsl:text>patch -Z</xsl:text>
    156         <xsl:value-of select="substring-after(string(),'patch')"/>
    157         <xsl:text>&#xA;</xsl:text>
    158       </xsl:when>
    159163      <!-- Setting $LANG for /etc/profile -->
    160164      <xsl:when test="ancestor::sect1[@id='ch-scripts-profile'] and
     
    283287        <xsl:value-of select="$page"/>
    284288      </xsl:when>
     289      <xsl:when test="ancestor::sect1[@id='ch-cross-tools-flags']">
     290        <xsl:choose>
     291          <xsl:when test="contains(string(),'BUILD32')">
     292            <xsl:choose>
     293              <xsl:when test="$sparc = '1' or $sparc = '2'">
     294                <xsl:text>-m32 -mcpu=ultrasparc -mtune=ultrasparc</xsl:text>
     295              </xsl:when>
     296              <xsl:when test="$sparc = '3'">
     297                <xsl:text>-m32 -mcpu=ultrasparc3 -mtune=ultrasparc3</xsl:text>
     298              </xsl:when>
     299            </xsl:choose>
     300          </xsl:when>
     301          <xsl:when test="contains(string(),'BUILD64')">
     302            <xsl:choose>
     303              <xsl:when test="$sparc = '1' or $sparc = '2'">
     304                <xsl:text>-m64 -mcpu=ultrasparc -mtune=ultrasparc</xsl:text>
     305              </xsl:when>
     306              <xsl:when test="$sparc = '3'">
     307                <xsl:text>-m64 -mcpu=ultrasparc3 -mtune=ultrasparc3</xsl:text>
     308              </xsl:when>
     309            </xsl:choose>
     310          </xsl:when>
     311          <xsl:when test="contains(string(),'GCCTARGET')">
     312            <xsl:choose>
     313              <xsl:when test="$sparc = '1' or $sparc = '2'">
     314                <xsl:text>-mcpu=ultrasparc -mtune=ultrasparc</xsl:text>
     315              </xsl:when>
     316              <xsl:when test="$sparc = '3'">
     317                <xsl:text>-mcpu=ultrasparc3 -mtune=ultrasparc3</xsl:text>
     318              </xsl:when>
     319            </xsl:choose>
     320          </xsl:when>
     321        </xsl:choose>
     322      </xsl:when>
    285323      <xsl:otherwise>
    286324        <xsl:text>**EDITME</xsl:text>
Note: See TracChangeset for help on using the changeset viewer.