Changeset c0bc66d
- Timestamp:
- 08/13/2006 11:58:59 AM (18 years ago)
- Branches:
- 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- d3ce173
- Parents:
- 8cb88dc
- Location:
- BLFS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/blfs-parser.sh
r8cb88dc rc0bc66d 11 11 12 12 # Grab and name the command line options 13 optTARGET=$1 14 optDEPENDENCY=$2 13 optTARGET=$1 # Package target 14 optDEPENDENCY=$2 # Dependencies level, 1/2/3 15 SUDO=$3 # Build as user (y) or as root (n) 16 17 [[ -z $SUDO ]] && SUDO=y 15 18 16 19 … … 114 117 generate_TARGET_xml 115 118 generate_target_book 116 create_build_scripts 119 create_build_scripts "${SUDO}" -
BLFS/libs/func_parser
r8cb88dc rc0bc66d 127 127 : <<inline_doc 128 128 function: Create shell scripts of the requested TARGET. 129 input vars: nothing129 input vars: $1 use sudo n/y 130 130 externals: TARGET 131 131 modifies: nothing … … 141 141 echo -en "\n\tGenerating the build scripts ..." 142 142 xsltproc --xinclude --nonet \ 143 --stringparam sudo $SUDO \ 143 144 -o ./scripts/ ../libs/scripts.xsl \ 144 145 $TARGET-index.xml >> xsltproc.log 2>&1 -
BLFS/libs/scripts.xsl
r8cb88dc rc0bc66d 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.