Changeset bacbb07 for BLFS


Ignore:
Timestamp:
10/21/2023 07:50:29 PM (11 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
ablfs-more, trunk
Children:
816fa9f5
Parents:
ddb0feb
Message:

Comments for the inst-instr template

kf5 has one push and to popd in its instructions.
We used to just use what was between push and popd.
But now, we need to only use what is in the
case instruction for one package, and what is
after the esac for all the others.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/xsl/make_book.xsl

    rddb0feb rbacbb07  
    705705
    706706  <xsl:template name="inst-instr">
     707    <!-- This template is necessary because of the "kapidox" case in kf5:
     708         Normally, the general instructions extract the package and change
     709         to the extracted dir for running the installation instructions.
     710         When installing a sub-package of a compound package, the installation
     711         instructions to be run are located between a pushd and a popd,
     712         *except* for kf5, where a popd occurs inside a case for kapidox...
     713         So we call this template with a "inst-instr" string that contains
     714         everything after the pushd.-->
    707715    <xsl:param name="inst-instr"/>
    708716    <xsl:param name="package"/>
    709717    <xsl:choose>
     718      <!-- first the case of kf5: there are two "popd"-->
    710719      <xsl:when test="contains(substring-after($inst-instr,'popd'),'popd')">
    711720        <xsl:choose>
    712721          <xsl:when test="$package='kapidox'">
     722            <!-- only the instructions inside the "case" and before popd -->
    713723            <xsl:copy-of select="substring-after(substring-before($inst-instr,'popd'),'kapidox)')"/>
    714724          </xsl:when>
    715725          <xsl:otherwise>
    716             <xsl:copy-of select="substring-before($inst-instr,'kapidox)')"/>
     726            <!-- all what is after the esac -->
    717727            <xsl:call-template name="inst-instr">
    718               <xsl:with-param name="inst-instr"
    719                               select="substring-after($inst-instr,';;')"/>
     728              <xsl:with-param
     729                name="inst-instr"
     730                select="substring-after($inst-instr,'esac&#xA;')"/>
    720731            </xsl:call-template>
    721732          </xsl:otherwise>
     
    723734      </xsl:when>
    724735      <xsl:otherwise>
     736        <!-- normal case: everything that is before popd -->
    725737        <xsl:copy-of select="substring-before($inst-instr,'popd')"/>
    726738      </xsl:otherwise>
Note: See TracChangeset for help on using the changeset viewer.