Changeset fd691b4 for dump-lfs-scripts.xsl
- Timestamp:
- 10/15/2005 03:40:23 PM (19 years ago)
- Branches:
- 0.2, 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- aebe03a
- Parents:
- 0fd8a9d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dump-lfs-scripts.xsl
r0fd8a9d rfd691b4 52 52 @id='ch-system-creatingdirs' or 53 53 @id='ch-system-createfiles'"> 54 <xsl:text>#!/tools/bin/bash

</xsl:text> 54 <xsl:text>#!/tools/bin/bash
set -e

</xsl:text> 55 </xsl:when> 56 <xsl:when test="@id='ch-tools-stripping' or 57 @id='ch-system-strippingagain'"> 58 <xsl:text>#!/bin/sh
</xsl:text> 55 59 </xsl:when> 56 60 <xsl:otherwise> 57 <xsl:text>#!/bin/sh
 
</xsl:text>61 <xsl:text>#!/bin/sh
set -e

</xsl:text> 58 62 </xsl:otherwise> 59 63 </xsl:choose> … … 61 65 @id='ch-tools-adjusting' or 62 66 @id='ch-system-readjusting'"> 63 <xsl:text>cd $PKGDIR &&
</xsl:text>67 <xsl:text>cd $PKGDIR
</xsl:text> 64 68 </xsl:if> 65 69 <xsl:apply-templates select=".//para/userinput | .//screen"/> … … 87 91 <xsl:text>make -k</xsl:text> 88 92 <xsl:value-of select="substring-after(string(),'make')"/> 89 <xsl:text> 
</xsl:text>93 <xsl:text> || true
</xsl:text> 90 94 </xsl:if> 91 95 </xsl:template> … … 93 97 <xsl:template match="userinput" mode="screen"> 94 98 <xsl:choose> 95 <xsl:when test="string() = 'make mrproper'"> 96 <xsl:text>make mrproper &&
</xsl:text> 97 <xsl:text>cp -v ../kernel-config .config &&
</xsl:text> 98 </xsl:when> 99 <!-- Estandarized package formats --> 99 100 <xsl:when test="contains(string(),'tar.gz')"> 100 101 <xsl:value-of select="substring-before(string(),'tar.gz')"/> 101 102 <xsl:text>tar.bz2</xsl:text> 102 103 <xsl:value-of select="substring-after(string(),'tar.gz')"/> 103 <xsl:text> &&
</xsl:text>104 <xsl:text>
</xsl:text> 104 105 </xsl:when> 106 <!-- Avoiding a race condition in a patch --> 107 <xsl:when test="contains(string(),'debian_fixes')"> 108 <xsl:value-of select="substring-before(string(),'patch')"/> 109 <xsl:text>patch -Z</xsl:text> 110 <xsl:value-of select="substring-after(string(),'patch')"/> 111 <xsl:text>
</xsl:text> 112 </xsl:when> 113 <!-- Copying the kernel config file --> 114 <xsl:when test="string() = 'make mrproper'"> 115 <xsl:text>make mrproper
</xsl:text> 116 <xsl:text>cp -v ../kernel-config .config
</xsl:text> 117 </xsl:when> 118 <!-- The Coreutils test suite is optional --> 105 119 <xsl:when test="$testsuite = '0' and 106 120 ancestor::sect1[@id='ch-system-coreutils'] and 107 121 (contains(string(),'check') or 108 122 contains(string(),'dummy'))"/> 123 <!-- Fixing toolchain test suites run --> 109 124 <xsl:when test="string() = 'make check' or 110 125 string() = 'make -k check'"> … … 112 127 <xsl:when test="$toolchaintest = '0'"/> 113 128 <xsl:otherwise> 114 <xsl:text>make -k check </xsl:text>129 <xsl:text>make -k check || true</xsl:text> 115 130 <xsl:text>
</xsl:text> 116 131 </xsl:otherwise> 117 132 </xsl:choose> 118 133 </xsl:when> 119 <xsl:when test="contains(string(),'glibc-check-log') or 120 contains(string(),'test_summary') or 134 <xsl:when test="contains(string(),'glibc-check-log')"> 135 <xsl:choose> 136 <xsl:when test="$toolchaintest = '0'"/> 137 <xsl:otherwise> 138 <xsl:value-of select="substring-before(string(),'
')"/> 139 <xsl:text> || true
</xsl:text> 140 <xsl:value-of select="substring-after(string(),'
')"/> 141 <xsl:text>
</xsl:text> 142 </xsl:otherwise> 143 </xsl:choose> 144 </xsl:when> 145 <xsl:when test="contains(string(),'test_summary') or 121 146 contains(string(),'expect -c')"> 122 147 <xsl:choose> … … 124 149 <xsl:otherwise> 125 150 <xsl:apply-templates/> 126 <xsl:text> &&
</xsl:text>151 <xsl:text>
</xsl:text> 127 152 </xsl:otherwise> 128 153 </xsl:choose> 129 154 </xsl:when> 130 <xsl:when test="contains(string(),'EOF')"> 131 <xsl:value-of select="substring-before(string(),'cat >')"/> 132 <xsl:text>
(
cat << EOF
</xsl:text> 133 <xsl:apply-templates select="literal"/> 134 <xsl:text>
EOF
) ></xsl:text> 135 <xsl:value-of select="substring-after((substring-before(string(),'<<')),'cat >')"/> 136 <xsl:text> &&
</xsl:text> 137 <xsl:if test="string-length(substring-after(string(),'EOF
')) > 0"> 138 <xsl:value-of select="substring-after(string(),'EOF
')"/> 139 <xsl:text> &&
</xsl:text> 140 </xsl:if> 155 <!-- Don't stop on strip run --> 156 <xsl:when test="contains(string(),'strip ')"> 157 <xsl:apply-templates/> 158 <xsl:text> || true
</xsl:text> 141 159 </xsl:when> 142 <xsl:when test="contains(string(),'debian_fixes')"> 143 <xsl:value-of select="substring-before(string(),'patch')"/> 144 <xsl:text>patch -Z</xsl:text> 145 <xsl:value-of select="substring-after(string(),'patch')"/> 146 <xsl:text> &&
</xsl:text> 147 </xsl:when> 160 <!-- The rest of commands --> 148 161 <xsl:otherwise> 149 162 <xsl:apply-templates/> 150 <xsl:if test="not(contains(string(),'check')) and151 not(contains(string(),'strip '))">152 <xsl:text> &&</xsl:text>153 </xsl:if>154 163 <xsl:text>
</xsl:text> 155 </xsl:otherwise>156 </xsl:choose>157 </xsl:template>158 159 <xsl:template match="literal">160 <xsl:choose>161 <xsl:when test="contains(string(),'$@')">162 <xsl:variable name="content">163 <xsl:apply-templates/>164 </xsl:variable>165 <xsl:value-of select="substring-before(string($content),'$@')"/>166 <xsl:text>\$@</xsl:text>167 <xsl:value-of select="substring-after(string($content),'$@')"/>168 </xsl:when>169 <xsl:otherwise>170 <xsl:apply-templates/>171 164 </xsl:otherwise> 172 165 </xsl:choose>
Note:
See TracChangeset
for help on using the changeset viewer.