Changeset 1b02a9a for LFS/lfs.xsl


Ignore:
Timestamp:
09/11/2023 08:04:44 AM (10 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
ablfs-more, trunk
Children:
74601a7
Parents:
4ba94ad
git-author:
Xi Ruoyao <xry111@…> (09/11/2023 06:38:15 AM)
git-committer:
Xi Ruoyao <xry111@…> (09/11/2023 08:04:44 AM)
Message:
Replace $(nproc
echo 1) and $(nproc)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/lfs.xsl

    r4ba94ad r1b02a9a  
    2828  -->
    2929  <xsl:param name="testsuite" select="1"/>
     30
     31  <!-- Parallelism (LFS >= 12.1) -->
     32  <xsl:param name="jobs_1" select="1"/>
     33  <xsl:param name="jobs_2" select="1"/>
    3034
    3135  <!-- Install non wide character ncurses 5? -->
     
    616620        <xsl:value-of select="$hostname"/>
    617621      </xsl:when>
     622      <xsl:when test="contains(string(.),'$(nproc || echo 1)')">
     623        <xsl:value-of select="$jobs_1"/>
     624      </xsl:when>
     625      <xsl:when test="contains(string(.),'$(nproc)')">
     626        <xsl:value-of select="$jobs_2"/>
     627      </xsl:when>
    618628      <xsl:otherwise>
    619629        <xsl:text>**EDITME</xsl:text>
     
    10811091    <xsl:param name="eof-seen" select="false()"/>
    10821092    <xsl:choose>
     1093      <xsl:when test="contains($instructions, '$(nproc)')">
     1094        <xsl:call-template name="comment-test">
     1095          <xsl:with-param
     1096            name="instructions"
     1097            select="concat(substring-before($instructions, '$(nproc)'), $jobs_2, substring-after($instructions, '$(nproc)'))"/>
     1098          <xsl:with-param name="eof-seen" select="$eof-seen"/>
     1099        </xsl:call-template>
     1100      </xsl:when>
    10831101      <xsl:when test="contains($instructions,'&#xA;')">
    10841102        <xsl:call-template name="comment-test">
Note: See TracChangeset for help on using the changeset viewer.