Changeset 00f4966 for BLFS/libs/scripts.xsl
- Timestamp:
- 08/13/2006 06:24:16 PM (18 years ago)
- Branches:
- experimental
- Children:
- 2fedf49
- Parents:
- d0d9e90
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/libs/scripts.xsl
rd0d9e90 r00f4966 9 9 10 10 <!-- XSLT stylesheet to create shell scripts from "linear build" BLFS books. --> 11 12 <!-- Build as user (y) or as root (n)? --> 13 <xsl:param name="sudo" select="y"/> 11 14 12 15 <xsl:template match="/"> … … 345 348 <xsl:template match="screen"> 346 349 <xsl:if test="child::* = userinput and not(@role = 'nodump')"> 347 <xsl:if test="@role = 'root' ">350 <xsl:if test="@role = 'root' and $sudo = 'y'"> 348 351 <xsl:text>sudo sh -c "</xsl:text> 349 352 </xsl:if> 350 353 <xsl:apply-templates select="userinput"/> 351 <xsl:if test="@role = 'root' ">354 <xsl:if test="@role = 'root' and $sudo = 'y'"> 352 355 <xsl:text>"</xsl:text> 353 356 </xsl:if>
Note:
See TracChangeset
for help on using the changeset viewer.