Changeset 695a921
- Timestamp:
- 02/07/2024 02:09:41 PM (3 months ago)
- Branches:
- ablfs-more, trunk
- Children:
- fb7af8c
- Parents:
- e6efe4c9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/xsl/make_book.xsl
re6efe4c9 r695a921 726 726 727 727 <xsl:template name="inst-instr"> 728 <!-- This template is necessary because of the "kapidox" case in kf5: 728 <!-- This template is necessary because of the "libpciaccess" case in Xorg 729 libraries and the "kapidox" case in kf5: 729 730 Normally, the general instructions extract the package and change 730 731 to the extracted dir for running the installation instructions. 731 732 When installing a sub-package of a compound package, the installation 732 733 instructions to be run are located between a pushd and a popd, 733 *except* for kf5, where a popd occurs inside a case for kapidox... 734 *except* for Xorg libraries and kf5, where a popd occurs inside a 735 case for libpciaccess and kapidox... 734 736 So we call this template with a "inst-instr" string that contains 735 737 everything after the pushd.--> … … 737 739 <xsl:param name="package"/> 738 740 <xsl:choose> 739 <!-- first the case of kf5:there are two "popd"-->741 <!-- first the cases where there are two "popd"--> 740 742 <xsl:when test="contains(substring-after($inst-instr,'popd'),'popd')"> 741 743 <xsl:choose> … … 744 746 <xsl:copy-of select="substring-after(substring-before($inst-instr,'popd'),'kapidox)')"/> 745 747 </xsl:when> 748 <xsl:when test="$package='libpciaccess'"> 749 <!-- only the instructions inside the "case" and before popd --> 750 <xsl:copy-of select="substring-after(substring-before($inst-instr,'popd'),'libpciaccess* )')"/> 751 </xsl:when> 746 752 <xsl:otherwise> 747 <!-- all what is after the esac --> 753 <!-- We first copy what is before the first "as_root", then what is 754 after the first "popd", by calling the template again. The 755 reason for excluding "as_root" is that the output template takes 756 special action when it sees "as_root", which generates bogus code 757 if there are several of those...--> 758 <xsl:copy-of select="substring-before($inst-instr,'as_root')"/> 748 759 <xsl:call-template name="inst-instr"> 749 760 <xsl:with-param 750 761 name="inst-instr" 751 select="substring-after($inst-instr,' esac
')"/>762 select="substring-after($inst-instr,'popd')"/> 752 763 </xsl:call-template> 753 764 </xsl:otherwise>
Note:
See TracChangeset
for help on using the changeset viewer.