- Timestamp:
- 02/23/2012 05:42:27 PM (13 years ago)
- Branches:
- ablfs
- Children:
- d7818f5
- Parents:
- 7e51281
- Location:
- BLFS/xsl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/xsl/gen_pkg_list.xsl
r7e51281 r96a30c7 203 203 </xsl:if> 204 204 <!-- Dependencies --> 205 <!-- If in Xorg chapter, consider that the preceding package is 206 the first dependency (not always noted in the book) --> 207 <xsl:if test="ancestor::chapter[@id='x-window-system'] and 208 preceding-sibling::sect1[@id != 'xorg7']"> 209 <xsl:text> 210 </xsl:text> 211 <xsl:element name="dependency"> 212 <xsl:attribute name="status">required</xsl:attribute> 213 <xsl:attribute name="name"> 214 <xsl:value-of 215 select="preceding-sibling::sect1[1]/@id"/> 216 </xsl:attribute> 217 <xsl:attribute name="type">ref</xsl:attribute> 218 </xsl:element> 219 220 </xsl:if> 205 221 <xsl:apply-templates select=".//para[@role='required' or 206 222 @role='recommended' or -
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.