Changeset 695a921


Ignore:
Timestamp:
02/07/2024 02:09:41 PM (3 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
ablfs-more, trunk
Children:
fb7af8c
Parents:
e6efe4c9
Message:

Adapt to new book layout in Xorg libraries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/make_book.xsl

    re6efe4c9 r695a921  
    726726
    727727  <xsl:template name="inst-instr">
    728     <!-- This template is necessary because of the "kapidox" case in kf5:
     728    <!-- This template is necessary because of the "libpciaccess" case in Xorg
     729         libraries and the "kapidox" case in kf5:
    729730         Normally, the general instructions extract the package and change
    730731         to the extracted dir for running the installation instructions.
    731732         When installing a sub-package of a compound package, the installation
    732733         instructions to be run are located between a pushd and a popd,
    733          *except* for kf5, where a popd occurs inside a case for kapidox...
     734         *except* for Xorg libraries and kf5, where a popd occurs inside a
     735         case for libpciaccess and kapidox...
    734736         So we call this template with a "inst-instr" string that contains
    735737         everything after the pushd.-->
     
    737739    <xsl:param name="package"/>
    738740    <xsl:choose>
    739       <!-- first the case of kf5: there are two "popd"-->
     741      <!-- first the cases where there are two "popd"-->
    740742      <xsl:when test="contains(substring-after($inst-instr,'popd'),'popd')">
    741743        <xsl:choose>
     
    744746            <xsl:copy-of select="substring-after(substring-before($inst-instr,'popd'),'kapidox)')"/>
    745747          </xsl:when>
     748          <xsl:when test="$package='libpciaccess'">
     749            <!-- only the instructions inside the "case" and before popd -->
     750            <xsl:copy-of select="substring-after(substring-before($inst-instr,'popd'),'libpciaccess* )')"/>
     751          </xsl:when>
    746752          <xsl:otherwise>
    747             <!-- all what is after the esac -->
     753            <!-- We first copy what is before the first "as_root", then what is
     754            after the first "popd", by calling the template again. The
     755            reason for excluding "as_root" is that the output template takes
     756            special action when it sees "as_root", which generates bogus code
     757            if there are several of those...-->
     758            <xsl:copy-of select="substring-before($inst-instr,'as_root')"/>
    748759            <xsl:call-template name="inst-instr">
    749760              <xsl:with-param
    750761                name="inst-instr"
    751                 select="substring-after($inst-instr,'esac&#xA;')"/>
     762                select="substring-after($inst-instr,'popd')"/>
    752763            </xsl:call-template>
    753764          </xsl:otherwise>
Note: See TracChangeset for help on using the changeset viewer.