Changeset 3c43655 for LFS/lfs.xsl


Ignore:
Timestamp:
11/15/2023 05:24:22 PM (8 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
ablfs-more, trunk
Children:
63190e6
Parents:
645ec47
git-author:
Pierre Labastie <pierre.labastie@…> (11/15/2023 05:10:07 PM)
git-committer:
Pierre Labastie <pierre.labastie@…> (11/15/2023 05:24:22 PM)
Message:

Only replace $(nproc) in scriptlets

There is no more $(nproc
echo 1). Note that we may replace

it with $(nproc) if using all cores, so don't replace it in
the comment-test template (otherwise we have infinite recursion).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/lfs.xsl

    r645ec47 r3c43655  
    3030
    3131  <!-- Parallelism (LFS >= 12.1) -->
    32   <xsl:param name="jobs_1" select="1"/>
    33   <xsl:param name="jobs_2" select="1"/>
     32  <xsl:param name="jobs" select="1"/>
    3433
    3534  <!-- Install non wide character ncurses 5? -->
     
    622621        <xsl:value-of select="$hostname"/>
    623622      </xsl:when>
    624       <xsl:when test="contains(string(.),'$(nproc || echo 1)')">
    625         <xsl:value-of select="$jobs_1"/>
    626       </xsl:when>
    627623      <xsl:when test="contains(string(.),'$(nproc)')">
    628         <xsl:value-of select="$jobs_2"/>
     624        <xsl:value-of select="$jobs"/>
    629625      </xsl:when>
    630626      <xsl:otherwise>
     
    10931089    <xsl:param name="eof-seen" select="false()"/>
    10941090    <xsl:choose>
    1095       <xsl:when test="contains($instructions, '$(nproc)')">
    1096         <xsl:call-template name="comment-test">
    1097           <xsl:with-param
    1098             name="instructions"
    1099             select="concat(substring-before($instructions, '$(nproc)'), $jobs_2, substring-after($instructions, '$(nproc)'))"/>
    1100           <xsl:with-param name="eof-seen" select="$eof-seen"/>
    1101         </xsl:call-template>
    1102       </xsl:when>
    11031091      <xsl:when test="contains($instructions,'&#xA;')">
    11041092        <xsl:call-template name="comment-test">
Note: See TracChangeset for help on using the changeset viewer.