- Timestamp:
- 02/23/2012 02:12:55 PM (13 years ago)
- Branches:
- ablfs
- Children:
- 96a30c7
- Parents:
- 59364d0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LFS/lfs.xsl
r59364d0 r7e51281 236 236 </xsl:template> 237 237 238 <xsl:template match="sect1" mode="pkgmngt">238 <xsl:template match="sect1" mode="pkgmngt"> 239 239 <xsl:param name="dirname" select="chapter05"/> 240 240 <!-- The build order --> … … 245 245 <xsl:variable name="filename" select="substring-before(substring($pi-file-value,2),'.html')"/> 246 246 <!-- Creating dirs and files --> 247 <exsl:document href="{$dirname}/{$order}-{position()}-{$filename}" method="text"> 248 <xsl:text>#!/bin/bash 247 <xsl:if test="count(descendant::screen/userinput) > 0 and 248 count(descendant::screen/userinput) > 249 count(descendant::screen[@role='nodump'])"> 250 <exsl:document href="{$dirname}/{$order}-{position()}-{$filename}" 251 method="text"> 252 <xsl:text>#!/bin/bash 249 253 set +h 250 254 set -e … … 252 256 cd $PKGDIR 253 257 </xsl:text> 254 <xsl:apply-templates 255 select=".//screen[not(@role) or @role != 'nodump']/userinput[@remap != 'adjust']" 258 <xsl:apply-templates 259 select=".//screen[not(@role) or 260 @role != 'nodump']/userinput[@remap != 'adjust']" 256 261 mode="pkgmngt"/> 257 <xsl:if test="$dirname = 'chapter06'">258 <xsl:text>packInstall262 <xsl:if test="$dirname = 'chapter06'"> 263 <xsl:text>packInstall 259 264 rm -rf $PKG_DEST 260 265 </xsl:text> 261 </xsl:if> 262 <xsl:apply-templates 263 select=".//screen[ 264 not(@role) or 265 @role != 'nodump' 266 ]/userinput[ 267 not(@remap) or 268 @remap='adjust' 266 </xsl:if> 267 <xsl:apply-templates 268 select=".//screen[not(@role) or 269 @role != 'nodump' 270 ]/userinput[not(@remap) or 271 @remap='adjust' 269 272 ]" 270 273 mode="pkgmngt"/> 271 <xsl:text>274 <xsl:text> 272 275 echo -e "\n\nTotalseconds: $SECONDS\n" 273 276 exit 274 277 </xsl:text> 275 </exsl:document> 278 </exsl:document> 279 </xsl:if> 276 280 </xsl:template> 277 281
Note:
See TracChangeset
for help on using the changeset viewer.