Changeset a131250 for LFS/lfs.xsl


Ignore:
Timestamp:
03/29/2020 01:17:38 PM (4 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
1dce189
Parents:
5e4a124
Message:

Generate chapter 4 scriptlets

This is a major change for LFS. We won't be using the makefile for
the final preparations, but we'll extract the book instructions and
use them (the "use part not in this commit).
Since getting figures for those scriptlets is not important, and we
cannot use start and end scripts, which need already set up user and
dirs, do not use them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/lfs.xsl

    r5e4a124 ra131250  
    101101     so that it would be difficult to compare to previous versions. So for
    102102     version 2.4, let us keep this -->
    103         <xsl:if test="(../@id='chapter-temporary-tools' or
    104                   ../@id='chapter-building-system' or
    105                   ../@id='chapter-bootscripts' or
    106                   ../@id='chapter-config' or
    107                   ../@id='chapter-bootable') and
     103    <xsl:if test="(../@id='chapter-temporary-tools' or
     104                   ../@id='chapter-final-preps' or
     105                   ../@id='chapter-building-system' or
     106                   ../@id='chapter-bootscripts' or
     107                   ../@id='chapter-config' or
     108                   ../@id='chapter-bootable') and
    108109                  (sect2[not(@revision) or @revision=$revision]//..|.)/
    109110                      screen[(not(@role) or @role != 'nodump') and
     
    173174      </xsl:if>
    174175      <xsl:text>&#xA;</xsl:text>
    175       <xsl:call-template name="start-script">
    176         <xsl:with-param name="order" select="$order"/>
    177       </xsl:call-template>
     176      <xsl:if test="ancestor::chapter/@id != 'chapter-final-preps'">
     177        <xsl:call-template name="start-script">
     178          <xsl:with-param name="order" select="$order"/>
     179        </xsl:call-template>
     180      </xsl:if>
    178181      <xsl:apply-templates select="sect2[not(@revision) or
    179182                                         @revision=$revision] |
     
    196199           mode="pkgmngt"/>
    197200      </xsl:if>
    198       <xsl:text>echo -e "\n\nTotalseconds: $SECONDS\n"&#xA;</xsl:text>
    199       <xsl:call-template name="end-script"/>
     201      <xsl:if test="ancestor::chapter/@id != 'chapter-final-preps'">
     202        <xsl:text>echo -e "\n\nTotalseconds: $SECONDS\n"&#xA;</xsl:text>
     203        <xsl:call-template name="end-script"/>
     204      </xsl:if>
    200205      <xsl:text>exit&#xA;</xsl:text>
    201206    </exsl:document>
Note: See TracChangeset for help on using the changeset viewer.