Changeset 96a30c7 for BLFS/xsl/scripts.xsl
- Timestamp:
- 02/23/2012 05:42:27 PM (13 years ago)
- Branches:
- ablfs
- Children:
- d7818f5
- Parents:
- 7e51281
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/xsl/scripts.xsl
r7e51281 r96a30c7 373 373 <xsl:template match="screen"> 374 374 <xsl:if test="child::* = userinput and not(@role = 'nodump')"> 375 <xsl:if test="@role = 'root' and $sudo = 'y'"> 376 <xsl:text>sudo sh -c '</xsl:text> 377 </xsl:if> 378 <xsl:apply-templates select="userinput"/> 379 <xsl:if test="@role = 'root' and $sudo = 'y'"> 380 <xsl:text>'</xsl:text> 381 </xsl:if> 375 <xsl:choose> 376 <xsl:when test="@role = 'root'"> 377 <xsl:if test="$sudo = 'y'"> 378 <xsl:text>sudo sh -c '</xsl:text> 379 </xsl:if> 380 <xsl:apply-templates select="userinput" mode="root"/> 381 <xsl:if test="$sudo = 'y'"> 382 <xsl:text>'</xsl:text> 383 </xsl:if> 384 </xsl:when> 385 <xsl:otherwise> 386 <xsl:apply-templates select="userinput"/> 387 </xsl:otherwise> 388 </xsl:choose> 382 389 <xsl:text>
</xsl:text> 383 390 </xsl:if> … … 437 444 </xsl:template> 438 445 446 <xsl:template match="userinput" mode="root"> 447 <xsl:for-each select="child::node()"> 448 <xsl:choose> 449 <xsl:when test="self::text() and contains(string(),'make')"> 450 <xsl:value-of select="substring-before(string(),'make')"/> 451 <xsl:text>make -j1</xsl:text> 452 <xsl:value-of select="substring-after(string(),'make')"/> 453 </xsl:when> 454 <xsl:otherwise> 455 <xsl:apply-templates select="self::node()"/> 456 </xsl:otherwise> 457 </xsl:choose> 458 </xsl:for-each> 459 </xsl:template> 460 439 461 <xsl:template match="replaceable"> 440 462 <!-- Not needed anymore
Note:
See TracChangeset
for help on using the changeset viewer.