Changeset 1b02a9a for common


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)
Location:
common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • common/chroot.xsl

    r4ba94ad r1b02a9a  
    66      extension-element-prefixes="exsl"
    77      version="1.0">
     8
     9  <xsl:param name="jobs_2" select="1"/>
    810
    911  <xsl:template match="/">
     
    5658    <xsl:param name="instructions" select="''"/>
    5759    <xsl:choose>
     60      <xsl:when test="contains($instructions, '$(nproc || echo 1)')">
     61        <xsl:call-template name="extract-chroot">
     62          <xsl:with-param
     63            name="instructions"
     64            select="concat(substring-before($instructions, '$(nproc || echo 1)'), $jobs_2, substring-after($instructions, '$(nproc || echo 1)'))"/>
     65        </xsl:call-template>
     66      </xsl:when>
    5867      <xsl:when test="not(starts-with($instructions,'&#xA;chroot')) and
    5968                      contains($instructions, '&#xA;chroot')">
  • common/libs/func_book_parser

    r4ba94ad r1b02a9a  
    6464  popd > /dev/null
    6565
     66  JOBS_1=1
     67  JOBS_2=1
     68  case "$OPTIMIZE" in
     69    "1") JOBS_2="$N_PARALLEL";;
     70    "2") JOBS_1="$N_PARALLEL"; JOBS_2="$N_PARALLEL";;
     71  esac
     72
    6673  # First profile the book, for revision and arch. Note that
    6774  # MULTIBLIB is set to "default" if pure 64 bit book. In this case,
     
    103110           --stringparam log-level      "$LOG_LEVEL"    \
    104111           --stringparam script-root    "$SCRIPT_ROOT"  \
     112           --stringparam jobs_1         "$JOBS_1"       \
     113           --stringparam jobs_2         "$JOBS_2"       \
    105114           --output "./${COMMANDS}/"                    \
    106115           $XSL                                         \
     
    142151  echo -n "... "
    143152  xsltproc --nonet --xinclude \
    144            -o chroot-scripts/ chroot.xsl \
     153           --stringparam jobs_2 "$JOBS_2" \
     154           -o chroot-scripts/ chroot.xsl  \
    145155           $BOOK/chapter0?/*chroot*.xml >> $LOGDIR/$LOG 2>&1
    146156  echo "done"
Note: See TracChangeset for help on using the changeset viewer.