Changeset 0cd09c6
- Timestamp:
- 09/19/2023 08:11:11 PM (10 months ago)
- Branches:
- ablfs-more, trunk
- Children:
- e6a1ec3
- Parents:
- b39f283
- Location:
- BLFS
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/gen-special.sh
rb39f283 r0cd09c6 99 99 <xsl:choose> 100 100 EOF 101 for file in $(ls ${BLFS_DIR}/x/installing/x7* | grep -v x7driver); do 101 for file in $(ls ${BLFS_DIR}/x/installing/x7* | grep -v x7driver) \ 102 ${BLFS_DIR}/kde/kf5/kf5-frameworks.xml \ 103 ${BLFS_DIR}/kde/plasma5/plasma-all.xml; do 102 104 id=$(grep xreflabel $file | sed 's@.*id="\([^"]*\).*@\1@') 103 105 cat >>$SPECIAL_FILE << EOF … … 117 119 # that the preceding package is a dependency of the following, 118 120 # except the first. 119 list_cat="$(sed -n '/>cat/,/EOF</p' $file | grep -v 'cat\|EOF\|#' |121 list_cat="$(sed -n '/>cat.*\.\(md5\|dat\)/,/EOF</p' $file | grep -v 'cat\|EOF\|#' | 120 122 awk '{ print $NF }' | sed 's/-&.*//')" 121 123 122 # Rationale for the sed below: the following for breaks words at spaces (unless 123 # we tweak IFS). So replace spaces with commas in lines so that only newlines 124 # are separators. 125 for pack in \ 126 $(grep 'ENTITY.*version' $file | sed 's/[ ]\+/,/g'); do 127 packname=$(echo $pack | sed s'@.*ENTITY,\(.*\)-version.*@\1@') 128 packversion=$(echo $pack | sed 's@[^"]*"\([^"]*\).*@\1@') 129 precpack=NONE 130 for i in $list_cat; do 131 if [ "$i" = "$packname" ]; then break; fi 132 precpack=$i 133 done 134 # It may happen that packname is not in list_cat, because its entity 135 # is commented out in the xml, but we do not check that (too complicated). 136 # In that case, the whole list is scanned, and $precpack=$i at the end. 137 # when packname is found in the list $precpack!=$i. 138 if [ "$precpack" = "$i" ]; then continue; fi 124 precpack=NONE 125 for pack in $list_cat; do 126 if grep -q x7 $file; then # this is an xorg package 127 packname=$pack 128 packversion=$(grep "ENTITY ${pack}-version" $file | \ 129 sed 's@[^"]*"\([^"]*\).*@\1@') 130 else 131 packname=${pack%%-[[:digit:]]*} 132 packversion=$(echo $pack | sed 's/[^.]*-\([.[:digit:]]*\)\.tar.*/\1/') 133 fi 134 ## Rationale for the sed below: the following for breaks words at spaces (unless 135 ## we tweak IFS). So replace spaces with commas in lines so that only newlines 136 ## are separators. 137 # for pack in \ 138 # $(grep 'ENTITY.*version' $file | sed 's/[ ]\+/,/g'); do 139 # packname=$(echo $pack | sed s'@.*ENTITY,\(.*\)-version.*@\1@') 140 # packversion=$(echo $pack | sed 's@[^"]*"\([^"]*\).*@\1@') 141 # for i in $list_cat; do 142 # if [ "$i" = "$packname" ]; then break; fi 143 # precpack=$i 144 # done 145 ## It may happen that packname is not in list_cat, because its entity 146 ## is commented out in the xml, but we do not check that (too complicated). 147 ## In that case, the whole list is scanned, and $precpack=$i at the end. 148 ## when packname is found in the list $precpack!=$i. 149 # if [ "$precpack" = "$i" ]; then continue; fi 139 150 cat >>$SPECIAL_FILE << EOF 140 151 <module><xsl:text>
 </xsl:text> … … 183 194 </xsl:element> 184 195 EOF 196 precpack=$packname 185 197 done 186 198 cat >>$SPECIAL_FILE << EOF -
BLFS/xsl/gen_config.xsl
rb39f283 r0cd09c6 310 310 			default	</xsl:text> 311 311 <xsl:choose> 312 <xsl:when test="contains(../name,'xorg')"> 312 <xsl:when test="contains(../name,'xorg') or 313 contains(../name,'plasma') or 314 contains(../name,'kf5')"> 313 315 <xsl:text>y 314 316 -
BLFS/xsl/gen_pkg_list.xsl
rb39f283 r0cd09c6 360 360 <xsl:when test="@role='nodep'"/> 361 361 <!-- Call list expansion when we have an xorg7 series of packages --> 362 <xsl:when test="contains(@linkend,'xorg7-')"> 362 <xsl:when test="contains(@linkend,'xorg7-') or 363 @linkend='kf5-frameworks' or 364 @linkend='plasma5-build'"> 363 365 <xsl:call-template name="expand-deps"> 364 366 <xsl:with-param name="section"> -
BLFS/xsl/make_book.xsl
rb39f283 r0cd09c6 58 58 Normally, those items are id of nodes. 59 59 Those nodes can be sect1 (normal case), 60 sect2 (python modules or DBus bindings) 61 bridgehead (perl modules) 62 para (dependency of perl modules). 60 sect2 (python/perl modules/dependencies ) 63 61 The templates after this one treat each of those cases. 64 62 However, some items are xorg package names, and not id. … … 66 64 The difficulty is that some of those names *are* id's, 67 65 because they are referenced in the index. 68 Hopefully, none of those id's are sect{1,2} , bridgehead or para...-->66 Hopefully, none of those id's are sect{1,2}...--> 69 67 <xsl:template name="apply-list"> 70 68 <xsl:param name="list" select="''"/> … … 101 99 </xsl:when> 102 100 <xsl:when test="contains(concat($list,' '),'-pass1 ')"> 103 <!-- We need to do it only forsect1 and sect2, because of libva -->101 <!-- We need to do it for both sect1 and sect2, because of libva --> 104 102 <xsl:variable 105 103 name="real-id" … … 114 112 <xsl:when test="not(id($list)[self::sect1 or self::sect2 or self::para or self::bridgehead])"> 115 113 <xsl:apply-templates 116 select="//sect1[contains(@id,'xorg7') 117 and contains(string(.//userinput), 118 concat($list,'-'))]" 114 select="//sect1[(contains(@id,'xorg7') or 115 contains(@id,'frameworks') or 116 contains(@id,'plasma5')) 117 and .//userinput/literal[contains(string(), 118 concat($list,'-'))]]" 119 119 mode="xorg"> 120 120 <xsl:with-param name="package" select="$list"/> … … 498 498 <xsl:template match="sect1" mode="xorg"> 499 499 <xsl:param name="package"/> 500 <!--DEBUG 501 <xsl:message> 502 <xsl:text>Entering sect1 template in xorg mode: 503 - page id:</xsl:text> 504 <xsl:value-of select="@id"/> 505 <xsl:text> 506 - package:</xsl:text> 507 <xsl:value-of select="$package"/> 508 <xsl:text> 509 </xsl:text> 510 </xsl:message> END DEBUG --> 500 511 <xsl:variable name="tarball"> 501 512 <xsl:call-template name="tarball"> … … 522 533 <xsl:call-template name="inst-instr"> 523 534 <xsl:with-param name="inst-instr" 524 select=".//userinput[starts-with(string(),'for ')]"/> 535 select= 536 "substring-after( 537 substring-after(.//userinput[starts-with(string(),'for ') or 538 starts-with(string(),'while ')], 539 'pushd'), 540 '
')"/> 541 <xsl:with-param name="package" select="$package"/> 525 542 </xsl:call-template> 526 543 </xsl:variable> … … 541 558 select=".//para[contains(string(),'(HTTP)')]/ulink/@url"/> 542 559 <xsl:value-of select="$download-dir"/> 560 <xsl:if test="contains(@id,'frameworks') or 561 contains(@id,'plasma5')"> 562 <xsl:text>/</xsl:text> 563 </xsl:if> 543 564 <xsl:value-of select="$tarball"/> 544 565 </xsl:attribute> … … 547 568 </listitem> 548 569 <listitem> 549 <para>Download (FTP): <xsl:element name="ulink"> 550 <xsl:attribute name="url"> 551 <xsl:value-of 552 select=".//para[contains(string(),'(FTP)')]/ulink/@url"/> 553 <xsl:value-of select="$download-dir"/> 554 <xsl:value-of select="$tarball"/> 555 </xsl:attribute> 556 </xsl:element> 570 <para>Download (FTP): <ulink url=" "/> 557 571 </para> 558 572 </listitem> … … 582 596 <screen><userinput>packagedir=<xsl:value-of 583 597 select="substring-before($tarball,'.tar.')"/> 584 <xsl:text>
</xsl:text> 598 <xsl:text> 599 name=$(echo $pkg | sed 's/-[[:digit:]].*//') 600 </xsl:text> 585 601 <xsl:value-of select="substring-before($install-instructions, 586 602 'as_root')"/> … … 681 697 <xsl:template name="inst-instr"> 682 698 <xsl:param name="inst-instr"/> 683 <xsl:choose> 684 <xsl:when test="contains($inst-instr,'pushd')"> 685 <xsl:call-template name="inst-instr"> 686 <xsl:with-param name="inst-instr" 687 select="substring-after( 688 substring-after($inst-instr,'pushd'), 689 '
')"/> 690 </xsl:call-template> 699 <xsl:param name="package"/> 700 <xsl:choose> 701 <xsl:when test="contains(substring-after($inst-instr,'popd'),'popd')"> 702 <xsl:choose> 703 <xsl:when test="$package='kapidox'"> 704 <xsl:copy-of select="substring-after(substring-before($inst-instr,'popd'),'kapidox)')"/> 705 </xsl:when> 706 <xsl:otherwise> 707 <xsl:copy-of select="substring-before($inst-instr,'kapidox)')"/> 708 <xsl:call-template name="inst-instr"> 709 <xsl:with-param name="inst-instr" 710 select="substring-after($inst-instr,';;')"/> 711 </xsl:call-template> 712 </xsl:otherwise> 713 </xsl:choose> 691 714 </xsl:when> 692 715 <xsl:otherwise>
Note:
See TracChangeset
for help on using the changeset viewer.