Changeset 654f592


Ignore:
Timestamp:
09/25/2019 03:29:17 PM (5 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
4ad6e44
Parents:
a1795f0
Message:

Add the possibility to update lfs bootscripts with blfs tools.
Ticket #1724

Location:
BLFS/xsl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/gen_pkg_list.xsl

    ra1795f0 r654f592  
    3939                            chapter[@id="chapter-building-system"]/
    4040                                 sect1/sect1info'/>
     41          <xsl:text>&#xA;    </xsl:text>
     42        </sublist>
     43        <sublist>
     44          <xsl:attribute name="id">lfs-7</xsl:attribute>
     45          <xsl:text>&#xA;      </xsl:text>
     46          <name>LFS Chapter 7</name>
     47          <xsl:apply-templates
     48               select='document($lfs-full)//
     49                            chapter[@id="chapter-bootscripts"]/
     50                                 sect1/sect1info[./productname="bootscripts"]'/>
    4151          <xsl:text>&#xA;    </xsl:text>
    4252        </sublist>
  • BLFS/xsl/lfs_make_book.xsl

    ra1795f0 r654f592  
    1818                      $package='Python' or
    1919                      $package='shadow'"/>
     20      <xsl:when test="$package='bootscripts'">true</xsl:when>
    2021      <xsl:when test="$package='kernel'">true</xsl:when>
    2122      <xsl:when test="$package='LFS-Release'">true</xsl:when>
     
    3839                      $package='Python' or
    3940                      $package='shadow'"/>
     41      <xsl:when test="$package='bootscripts'">
     42        <xsl:for-each select="document($lfsbook)">
     43          <xsl:apply-templates select="key('idlfs',$package)[ancestor::chapter/@id='chapter-bootscripts']" mode="lfs"/>
     44        </xsl:for-each>
     45      </xsl:when>
    4046      <xsl:when test="$package='kernel'">
    4147        <xsl:for-each select="document($lfsbook)">
     
    6773        <xsl:element name="sect1">
    6874          <xsl:attribute name="id">
    69             <xsl:value-of select="./sect1info/productname"/>
     75            <xsl:choose>
     76              <xsl:when
     77                  test="./sect1info/productname=
     78                                   'bootscripts'">lfs-bootscripts</xsl:when>
     79              <xsl:otherwise>
     80                <xsl:value-of select="./sect1info/productname"/>
     81              </xsl:otherwise>
     82            </xsl:choose>
    7083          </xsl:attribute>
    7184          <xsl:apply-templates mode="lfs"/>
Note: See TracChangeset for help on using the changeset viewer.