Changeset 1b02a9a
- Timestamp:
- 09/11/2023 08:04:44 AM (9 months ago)
- 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)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
LFS/lfs.xsl
r4ba94ad r1b02a9a 28 28 --> 29 29 <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"/> 30 34 31 35 <!-- Install non wide character ncurses 5? --> … … 616 620 <xsl:value-of select="$hostname"/> 617 621 </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> 618 628 <xsl:otherwise> 619 629 <xsl:text>**EDITME</xsl:text> … … 1081 1091 <xsl:param name="eof-seen" select="false()"/> 1082 1092 <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> 1083 1101 <xsl:when test="contains($instructions,'
')"> 1084 1102 <xsl:call-template name="comment-test"> -
common/chroot.xsl
r4ba94ad r1b02a9a 6 6 extension-element-prefixes="exsl" 7 7 version="1.0"> 8 9 <xsl:param name="jobs_2" select="1"/> 8 10 9 11 <xsl:template match="/"> … … 56 58 <xsl:param name="instructions" select="''"/> 57 59 <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> 58 67 <xsl:when test="not(starts-with($instructions,'
chroot')) and 59 68 contains($instructions, '
chroot')"> -
common/libs/func_book_parser
r4ba94ad r1b02a9a 64 64 popd > /dev/null 65 65 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 66 73 # First profile the book, for revision and arch. Note that 67 74 # MULTIBLIB is set to "default" if pure 64 bit book. In this case, … … 103 110 --stringparam log-level "$LOG_LEVEL" \ 104 111 --stringparam script-root "$SCRIPT_ROOT" \ 112 --stringparam jobs_1 "$JOBS_1" \ 113 --stringparam jobs_2 "$JOBS_2" \ 105 114 --output "./${COMMANDS}/" \ 106 115 $XSL \ … … 142 151 echo -n "... " 143 152 xsltproc --nonet --xinclude \ 144 -o chroot-scripts/ chroot.xsl \ 153 --stringparam jobs_2 "$JOBS_2" \ 154 -o chroot-scripts/ chroot.xsl \ 145 155 $BOOK/chapter0?/*chroot*.xml >> $LOGDIR/$LOG 2>&1 146 156 echo "done"
Note:
See TracChangeset
for help on using the changeset viewer.