Changeset 7735c7a for BLFS


Ignore:
Timestamp:
12/28/2013 08:51:15 PM (10 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, new_features, trunk
Children:
d68eb1b
Parents:
94744cd
Message:

Suppress dependency on the preceding page in X chapter

Location:
BLFS/xsl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/dependencies.xsl

    r94744cd r7735c7a  
    4343    <xsl:variable name="depname">
    4444      <xsl:choose>
     45        <xsl:when test="@name='xorg-env'"/>
    4546        <xsl:when test="@name='x-window-system'">xinit</xsl:when>
    4647        <xsl:when test="@name='xorg7'">xinit</xsl:when>
  • BLFS/xsl/gen_pkg_list.xsl

    r94744cd r7735c7a  
    201201          </xsl:if>
    202202<!-- Dependencies -->
    203 <!-- If in Xorg or KDE chapter, consider that the preceding package is
    204      the first dependency (not always noted in the book) -->
    205           <xsl:if test="ancestor::chapter[@id='kde4-core'] or
    206                        (ancestor::chapter[@id='x-window-system'] and
    207                         preceding-sibling::sect1[@id != 'xorg7'])">
     203<!-- If in Xorg (not anymore) or KDE chapter, consider that the preceding
     204     package is the first dependency (not always noted in the book)-->
     205          <xsl:if test="ancestor::chapter[@id='kde4-core']">
    208206            <xsl:text>
    209207            </xsl:text>
    210             <xsl:choose>
    211               <xsl:when test="contains(preceding-sibling::sect1[1]/@id,
    212                                        'xorg7-') and
    213                               not(contains(preceding-sibling::sect1[1]/@id,
    214                                        'driver'))">
    215                 <xsl:call-template name="expand-deps">
    216                   <xsl:with-param name="section">
    217                     <xsl:value-of select="preceding-sibling::sect1[1]/@id"/>
    218                   </xsl:with-param>
    219                   <xsl:with-param name="status" select="'required'"/>
    220                 </xsl:call-template>
    221               </xsl:when>
    222               <xsl:otherwise>
    223                 <xsl:element name="dependency">
    224                   <xsl:attribute name="status">required</xsl:attribute>
    225                   <xsl:attribute name="name">
    226                     <xsl:choose>
    227                       <xsl:when test="@id='printproto'">xorg-server</xsl:when>
    228                       <xsl:otherwise>
    229                         <xsl:value-of
    230                           select="preceding-sibling::sect1[1]/@id"/>
    231                       </xsl:otherwise>
    232                     </xsl:choose>
    233                   </xsl:attribute>
    234                   <xsl:attribute name="type">ref</xsl:attribute>
    235                 </xsl:element>
    236               </xsl:otherwise>
    237             </xsl:choose>
     208            <xsl:element name="dependency">
     209              <xsl:attribute name="status">required</xsl:attribute>
     210              <xsl:attribute name="name">
     211                <xsl:value-of select="preceding-sibling::sect1[1]/@id"/>
     212              </xsl:attribute>
     213              <xsl:attribute name="type">ref</xsl:attribute>
     214            </xsl:element>
    238215          </xsl:if>
    239216          <xsl:apply-templates select=".//para[@role='required' or
Note: See TracChangeset for help on using the changeset viewer.