Changeset 0ad3a33
- Timestamp:
- 03/27/2017 09:40:41 AM (7 years ago)
- Branches:
- 2.4, ablfs-more, legacy, trunk
- Children:
- 1814367
- Parents:
- c67990f
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LFS/lfs.xsl
rc67990f r0ad3a33 8 8 extension-element-prefixes="exsl" 9 9 version="1.0"> 10 11 <!-- which revision attribute to include: can only be sysv or systemd, 12 but we leave checking to the caller--> 13 <xsl:param name="revision" select="'sysv'"/> 10 14 11 15 <!-- use package management ? … … 45 49 46 50 <xsl:template match="/"> 47 <xsl:apply-templates select="//sect1"/> 51 <xsl:apply-templates select="//sect1[not(@revision) or 52 @revision=$revision]"/> 48 53 </xsl:template> 49 54 … … 124 129 <xsl:text>cd $PKGDIR
</xsl:text> 125 130 </xsl:if> 126 <xsl:apply-templates select="sect2| 127 screen[not(@role) or 128 @role!='nodump']/userinput"/> 131 <xsl:apply-templates select="sect2[not(@revision) or 132 @revision=$revision] | 133 screen[(not(@role) or 134 @role!='nodump') and 135 (not(@revision) or 136 @revision=$revision)]/userinput"/> 129 137 <xsl:if test="@id='ch-system-creatingdirs' and $pkgmngt='y'"> 130 138 <xsl:apply-templates … … 149 157 <xsl:template match="sect2"> 150 158 <xsl:apply-templates 151 select=".//screen[not(@role) or 152 @role != 'nodump']/userinput[ 159 select=".//screen[(not(@role) or 160 @role != 'nodump') and 161 (not(@revision) or 162 @revision=$revision)]/userinput[ 153 163 @remap = 'pre' or 154 164 @remap = 'configure' or … … 180 190 </xsl:if> 181 191 <xsl:apply-templates 182 select=".//screen[not(@role) or 183 @role != 'nodump']/userinput[@remap = 'install']"/> 192 select=".//screen[(not(@role) or 193 @role != 'nodump') and 194 (not(@revision) or 195 @revision=$revision)]/userinput[@remap = 'install']"/> 184 196 <xsl:if test="ancestor::chapter[@id != 'chapter-temporary-tools'] and 185 197 $pkgmngt = 'y' and … … 256 268 <xsl:apply-templates 257 269 select=".//screen[ 258 not(@role) or 259 @role != 'nodump' 270 (not(@role) or 271 @role != 'nodump') and 272 (not(@revision) or 273 @revision=$revision) 260 274 ]/userinput[ 261 275 not(@remap) or -
common/libs/func_book_parser
rc67990f r0ad3a33 151 151 popd > /dev/null 152 152 153 xsltproc --nonet \154 --xinclude \155 --output /tmp/lfs-full.xml \156 --stringparam profile.revision $INITSYS \157 $BOOK/stylesheets/lfs-xsl/profile.xsl \158 $BOOK/index.xml159 160 153 xsltproc --nonet \ 154 --xinclude \ 155 --stringparam revision $INITSYS \ 161 156 --stringparam testsuite $TEST \ 162 157 --stringparam bomb-testsuite $BOMB_TEST \ … … 169 164 --output ./${PROGNAME}-commands/ \ 170 165 $XSL \ 171 /tmp/lfs-full.xml >>$LOGDIR/$LOG 2>&1 172 173 rm /tmp/lfs-full.xml 166 $BOOK/index.xml 174 167 ;; 175 168 *) echo -n " ${L_arrow}${PROGNAME}${R_arrow} book invalid, terminate build... "
Note:
See TracChangeset
for help on using the changeset viewer.