adaptations to recent modifications in the systemd book and
merging of a change (rev 3750) in the ablfs branch
This commit is contained in:
parent
0700131382
commit
8099885218
2 changed files with 27 additions and 18 deletions
21
LFS/lfs.xsl
21
LFS/lfs.xsl
|
@ -145,14 +145,15 @@
|
|||
<xsl:template match="sect2">
|
||||
<!--XML::Parser is on the same page as Perl. The present code is OK
|
||||
except for PKG_DEST and PKGDIR, which would be the same as for Perl.
|
||||
so set them to valid values.-->
|
||||
so set them to valid values.
|
||||
Since rev 10281, that is no more true. So comment out.
|
||||
<xsl:if test="contains(string(./title),'XML::Parser')">
|
||||
<xsl:text>PKGDIR=$(dirname $PKGDIR)/</xsl:text>
|
||||
<xsl:copy-of select="substring-after(.//userinput[@remap='pre'], 'cd ')"/>
|
||||
<xsl:text>
|
||||
PKG_DEST=$(dirname $PKGDIR)/000-xml-parser
|
||||
</xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:if>-->
|
||||
<xsl:apply-templates
|
||||
select=".//screen[not(@role) or
|
||||
@role != 'nodump']/userinput[
|
||||
|
@ -269,7 +270,11 @@ fi
|
|||
<xsl:variable name="pi-file-value" select="substring-after($pi-file,'filename=')"/>
|
||||
<xsl:variable name="filename" select="substring-before(substring($pi-file-value,2),'.html')"/>
|
||||
<!-- Creating dirs and files -->
|
||||
<exsl:document href="{$dirname}/{$order}-{position()}-{$filename}" method="text">
|
||||
<xsl:if test="count(descendant::screen/userinput) > 0 and
|
||||
count(descendant::screen/userinput) >
|
||||
count(descendant::screen[@role='nodump'])">
|
||||
<exsl:document href="{$dirname}/{$order}-{position()}-{$filename}"
|
||||
method="text">
|
||||
<xsl:text>#!/bin/bash
|
||||
set +h
|
||||
set -e
|
||||
|
@ -277,7 +282,8 @@ set -e
|
|||
cd $PKGDIR
|
||||
</xsl:text>
|
||||
<xsl:apply-templates
|
||||
select=".//screen[not(@role) or @role != 'nodump']/userinput[@remap != 'adjust']"
|
||||
select=".//screen[not(@role) or
|
||||
@role != 'nodump']/userinput[@remap != 'adjust']"
|
||||
mode="pkgmngt"/>
|
||||
<xsl:if test="$dirname = 'chapter06'">
|
||||
<xsl:text>packInstall
|
||||
|
@ -285,11 +291,9 @@ rm -rf $PKG_DEST
|
|||
</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:apply-templates
|
||||
select=".//screen[
|
||||
not(@role) or
|
||||
select=".//screen[not(@role) or
|
||||
@role != 'nodump'
|
||||
]/userinput[
|
||||
not(@remap) or
|
||||
]/userinput[not(@remap) or
|
||||
@remap='adjust'
|
||||
]"
|
||||
mode="pkgmngt"/>
|
||||
|
@ -298,6 +302,7 @@ echo -e "\n\nTotalseconds: $SECONDS\n"
|
|||
exit
|
||||
</xsl:text>
|
||||
</exsl:document>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="userinput" mode="pkgmngt">
|
||||
|
|
|
@ -106,6 +106,10 @@ get_package_tarball_name() { #
|
|||
;;
|
||||
udev) echo $(grep "^systemd" $JHALFSDIR/pkg_tarball_list | head -n1 )
|
||||
;;
|
||||
xml-parser) echo $(grep "^XML" $JHALFSDIR/pkg_tarball_list | head -n1 )
|
||||
;;
|
||||
libdbus) echo $(grep "^dbus" $JHALFSDIR/pkg_tarball_list | head -n1 )
|
||||
;;
|
||||
*) echo $(grep "^$script_name[_-][[:digit:]]" $JHALFSDIR/pkg_tarball_list | head -n1 )
|
||||
;;
|
||||
esac
|
||||
|
|
Reference in a new issue