Changeset 9c9775f for CLFS/clfs.xsl
- Timestamp:
- 09/19/2007 04:50:48 PM (17 years ago)
- Branches:
- experimental
- Children:
- 3778352
- Parents:
- 0510381
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CLFS/clfs.xsl
r0510381 r9c9775f 42 42 <!-- Locale settings --> 43 43 <xsl:param name="lang" select="C"/> 44 45 <!-- Sparc64 processor type --> 46 <xsl:param name="sparc" select="none"/> 44 47 45 48 <xsl:template match="/"> … … 88 91 <exsl:document href="{$dirname}/{$order}-{$filename}" method="text"> 89 92 <xsl:choose> 90 <xsl:when test=" ../@id='chapter-chroot'">91 <xsl:text>#!/tools/bin/bash
set -e

</xsl:text>92 </xsl:when>93 <xsl:when test="@id='ch-system-stripping'">94 <xsl:text>#!/ bin/sh
</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
set +h
</xsl:text> 95 98 </xsl:when> 96 99 <xsl:otherwise> 97 <xsl:text>#!/bin/ sh
set -e

</xsl:text>100 <xsl:text>#!/bin/bash
set +h
</xsl:text> 98 101 </xsl:otherwise> 99 102 </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>
</xsl:text> 107 <xsl:if test="sect2[@role='installation'] and 108 not(@id='ch-system-multiarch-wrapper')"> 101 109 <xsl:text>cd $PKGDIR
</xsl:text> 102 110 <xsl:if test="@id='ch-system-vim' and $vim-lang = 'y'"> … … 105 113 </xsl:if> 106 114 <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"
</xsl:text> 117 </xsl:if> 107 118 <xsl:text>exit</xsl:text> 108 119 </exsl:document> … … 150 161 <xsl:text>
</xsl:text> 151 162 </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>
</xsl:text>158 </xsl:when>159 163 <!-- Setting $LANG for /etc/profile --> 160 164 <xsl:when test="ancestor::sect1[@id='ch-scripts-profile'] and … … 283 287 <xsl:value-of select="$page"/> 284 288 </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> 285 323 <xsl:otherwise> 286 324 <xsl:text>**EDITME</xsl:text>
Note:
See TracChangeset
for help on using the changeset viewer.