Author: pierre Date: Wed Sep 25 08:29:17 2019 New Revision: 4127 Log: Add the possibility to update lfs bootscripts with blfs tools. Ticket #1724
Modified: jhalfs/trunk/BLFS/xsl/gen_pkg_list.xsl jhalfs/trunk/BLFS/xsl/lfs_make_book.xsl Modified: jhalfs/trunk/BLFS/xsl/gen_pkg_list.xsl ============================================================================== --- jhalfs/trunk/BLFS/xsl/gen_pkg_list.xsl Wed Sep 25 00:50:45 2019 (r4126) +++ jhalfs/trunk/BLFS/xsl/gen_pkg_list.xsl Wed Sep 25 08:29:17 2019 (r4127) @@ -41,6 +41,16 @@ <xsl:text>
 </xsl:text> </sublist> <sublist> + <xsl:attribute name="id">lfs-7</xsl:attribute> + <xsl:text>
 </xsl:text> + <name>LFS Chapter 7</name> + <xsl:apply-templates + select='document($lfs-full)// + chapter[@id="chapter-bootscripts"]/ + sect1/sect1info[./productname="bootscripts"]'/> + <xsl:text>
 </xsl:text> + </sublist> + <sublist> <xsl:attribute name="id">lfs-8</xsl:attribute> <xsl:text>
 </xsl:text> <name>LFS Chapter 8</name> Modified: jhalfs/trunk/BLFS/xsl/lfs_make_book.xsl ============================================================================== --- jhalfs/trunk/BLFS/xsl/lfs_make_book.xsl Wed Sep 25 00:50:45 2019 (r4126) +++ jhalfs/trunk/BLFS/xsl/lfs_make_book.xsl Wed Sep 25 08:29:17 2019 (r4127) @@ -17,6 +17,7 @@ $package='systemd' or $package='Python' or $package='shadow'"/> + <xsl:when test="$package='bootscripts'">true</xsl:when> <xsl:when test="$package='kernel'">true</xsl:when> <xsl:when test="$package='LFS-Release'">true</xsl:when> <xsl:otherwise> @@ -37,6 +38,11 @@ $package='systemd' or $package='Python' or $package='shadow'"/> + <xsl:when test="$package='bootscripts'"> + <xsl:for-each select="document($lfsbook)"> + <xsl:apply-templates select="key('idlfs',$package)[ancestor::chapter/@id='chapter-bootscripts']" mode="lfs"/> + </xsl:for-each> + </xsl:when> <xsl:when test="$package='kernel'"> <xsl:for-each select="document($lfsbook)"> <xsl:apply-templates select="key('idlfs',$package)[ancestor::chapter/@id='chapter-bootable']" mode="lfs"/> @@ -66,7 +72,14 @@ <xsl:when test="self::sect1"> <xsl:element name="sect1"> <xsl:attribute name="id"> - <xsl:value-of select="./sect1info/productname"/> + <xsl:choose> + <xsl:when + test="./sect1info/productname= + 'bootscripts'">lfs-bootscripts</xsl:when> + <xsl:otherwise> + <xsl:value-of select="./sect1info/productname"/> + </xsl:otherwise> + </xsl:choose> </xsl:attribute> <xsl:apply-templates mode="lfs"/> </xsl:element> -- http://lists.linuxfromscratch.org/listinfo/alfs-log Unsubscribe: See the above information page