- Timestamp:
- 07/30/2006 10:10:33 AM (18 years ago)
- Branches:
- experimental
- Children:
- da49058
- Parents:
- 9272545
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
HLFS/hlfs.xsl
r9272545 rf83bcee 27 27 1 = only chapter06 Glibc, GCC and Binutils testsuites 28 28 2 = all chapter06 testsuites 29 3 = al l chapter05 and chapter06 testsuites-->29 3 = alias to 2 --> 30 30 <xsl:param name="testsuite" select="1"/> 31 31 … … 100 100 <xsl:text>pushd ../; tar -xvf gettext-&gettext-version;.*; popd; 
</xsl:text> 101 101 </xsl:if> 102 102 103 103 <!-- 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'"> 105 107 <xsl:text>tar -xvf gcc-core-&gcc-version;.*; 
</xsl:text> 106 108 <xsl:text>tar -xvf gcc-g++-&gcc-version;.*; 
</xsl:text> 107 109 <xsl:text>tar -xvf binutils-&binutils-version;.*; 
</xsl:text> 108 110 </xsl:if> 109 <xsl:if test="@id='ch-tools-cocoon-toolchain'">110 <xsl:text>tar -xvf gcc-core-&gcc-version;.*; 
</xsl:text>111 <xsl:text>tar -xvf gcc-g++-&gcc-version;.*; 
</xsl:text>112 <xsl:text>tar -xvf binutils-&binutils-version;.*; 
</xsl:text>113 </xsl:if>114 <xsl:if test="@id='ch-system-butterfly-toolchain'">115 <xsl:text>tar -xvf gcc-core-&gcc-version;.*; 
</xsl:text>116 <xsl:text>tar -xvf gcc-g++-&gcc-version;.*; 
</xsl:text>117 <xsl:text>tar -xvf binutils-&binutils-version;.*; 
</xsl:text>118 </xsl:if>119 111 <!-- 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'"> 121 113 <xsl:text>tar -xvf gcc-testsuite-&gcc-version;.*; 
</xsl:text> 122 114 </xsl:if> 123 115 <!-- END new toolchain format --> 124 116 125 117 <xsl:if test="@id='bootable-bootscripts'"> 126 118 <xsl:text>pushd ../; tar -xvf blfs-bootscripts-&blfs-bootscripts-version;.* ; popd; 
</xsl:text> … … 133 125 </xsl:template> 134 126 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 141 127 <xsl:template match="screen"> 142 128 <xsl:if test="(@condition=$model or not(@condition)) and … … 148 134 <xsl:template match="para/userinput"> 149 135 <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 >> $TEST_LOG 2>&1 || true
</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> >> $TEST_LOG 2>&1 || true
</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> >> $TEST_LOG 2>&1 || true
</xsl:text> 168 142 </xsl:if> 169 143 </xsl:template> … … 201 175 <xsl:text>
</xsl:text> 202 176 </xsl:when> 203 204 205 177 <!-- Fixing bootscripts installation --> 206 178 <xsl:when test="ancestor::sect1[@id='bootable-bootscripts'] and … … 242 214 </xsl:choose> 243 215 </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'"> 252 220 <xsl:text>make -k check >> $TEST_LOG 2>&1 || true
</xsl:text> 253 221 </xsl:when> 254 222 </xsl:choose> 255 223 </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(),'> glibc-')"/> 229 <xsl:text>>> $TEST_LOG 2>&1 || true
</xsl:text> 230 </xsl:when> 231 </xsl:choose> 232 </xsl:when> 262 233 <!-- Don't stop on strip run and chapter05 GCC installation test--> 263 234 <xsl:when test="contains(string(),'strip ') or … … 267 238 <xsl:text> || true
</xsl:text> 268 239 </xsl:when> 269 270 240 <!-- The rest of commands --> 271 241 <xsl:otherwise> … … 274 244 </xsl:otherwise> 275 245 </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> 276 252 </xsl:template> 277 253
Note:
See TracChangeset
for help on using the changeset viewer.