Ignore:
Timestamp:
03/01/2017 03:54:16 PM (7 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, trunk
Children:
84440e6
Parents:
fbdd1a8
Message:

Install units when revision is systemd, rather than bootscripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/make_book.xsl

    rfbdd1a8 r70d73d1  
    88  <xsl:param name="list" select="''"/>
    99  <xsl:param name="MTA" select="'sendmail'"/>
     10
     11<!-- Check whether the book is sysv or systemd -->
     12  <xsl:variable name="rev">
     13    <xsl:choose>
     14      <xsl:when test="//bookinfo/title/phrase[@revision='systemd']">
     15        <xsl:text>systemd</xsl:text>
     16      </xsl:when>
     17      <xsl:otherwise>
     18        <xsl:text>sysv</xsl:text>
     19      </xsl:otherwise>
     20    </xsl:choose>
     21  </xsl:variable>
    1022
    1123  <xsl:output
     
    2032        <?dbhtml filename="preface.html"?>
    2133        <title>Preface</title>
    22         <xsl:copy-of select="id('bootscripts')"/>
     34        <xsl:choose>
     35          <xsl:when test="$rev='sysv'">
     36            <xsl:copy-of select="id('bootscripts')"/>
     37          </xsl:when>
     38          <xsl:otherwise>
     39            <xsl:copy-of select="id('systemd-units')"/>
     40          </xsl:otherwise>
     41        </xsl:choose>
    2342      </preface>
    2443      <chapter>
     
    113132          <xsl:otherwise>
    114133            <xsl:choose>
    115               <xsl:when test="@linkend='bootscripts'">
     134              <xsl:when test="@linkend='bootscripts' or
     135                              @linkend='systemd-units'">
    116136                <xsl:copy-of select="."/>
    117137              </xsl:when>
Note: See TracChangeset for help on using the changeset viewer.