Ignore:
Timestamp:
08/13/2006 06:24:16 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
2fedf49
Parents:
d0d9e90
Message:

Merged r2936:2940 from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/libs/scripts.xsl

    rd0d9e90 r00f4966  
    99
    1010<!-- 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"/>
    1114
    1215  <xsl:template match="/">
     
    345348  <xsl:template match="screen">
    346349    <xsl:if test="child::* = userinput and not(@role = 'nodump')">
    347       <xsl:if test="@role = 'root'">
     350      <xsl:if test="@role = 'root' and $sudo = 'y'">
    348351        <xsl:text>sudo sh -c "</xsl:text>
    349352      </xsl:if>
    350353      <xsl:apply-templates select="userinput"/>
    351       <xsl:if test="@role = 'root'">
     354      <xsl:if test="@role = 'root' and $sudo = 'y'">
    352355        <xsl:text>"</xsl:text>
    353356      </xsl:if>
Note: See TracChangeset for help on using the changeset viewer.