Using PKGDIR in all chapters.
This commit is contained in:
parent
24530379e6
commit
56dd1e2ed2
2 changed files with 14 additions and 11 deletions
|
@ -44,9 +44,9 @@
|
||||||
<!-- Creating dirs and files -->
|
<!-- Creating dirs and files -->
|
||||||
<exsl:document href="{$dirname}/{$order}-{$filename}" method="text">
|
<exsl:document href="{$dirname}/{$order}-{$filename}" method="text">
|
||||||
<xsl:text>#!/bin/sh

</xsl:text>
|
<xsl:text>#!/bin/sh

</xsl:text>
|
||||||
<xsl:if test="(sect2[@role='installation'] or
|
<xsl:if test="sect2[@role='installation'] or
|
||||||
@id='ch-tools-adjusting') and
|
@id='ch-tools-adjusting' or
|
||||||
ancestor::chapter[@id='chapter-temporary-tools']">
|
@id='ch-system-readjusting'">
|
||||||
<xsl:text>cd $PKGDIR &&
</xsl:text>
|
<xsl:text>cd $PKGDIR &&
</xsl:text>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:apply-templates select=".//para/userinput | .//screen"/>
|
<xsl:apply-templates select=".//para/userinput | .//screen"/>
|
||||||
|
@ -73,7 +73,8 @@
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="para/userinput">
|
<xsl:template match="para/userinput">
|
||||||
<xsl:if test="$testsuite != '0' and (contains(string(),'test') or
|
<xsl:if test="$testsuite != '0' and
|
||||||
|
(contains(string(),'test') or
|
||||||
contains(string(),'check'))">
|
contains(string(),'check'))">
|
||||||
<xsl:value-of select="substring-before(string(),'make')"/>
|
<xsl:value-of select="substring-before(string(),'make')"/>
|
||||||
<xsl:text>make -k</xsl:text>
|
<xsl:text>make -k</xsl:text>
|
||||||
|
|
8
jhalfs
8
jhalfs
|
@ -158,7 +158,7 @@ get_book() {
|
||||||
# Test to make sure the LFS version is set
|
# Test to make sure the LFS version is set
|
||||||
if [ -z $LFSVRS ] ; then LFSVRS=development ; fi
|
if [ -z $LFSVRS ] ; then LFSVRS=development ; fi
|
||||||
|
|
||||||
# Set the book's soures directory
|
# Set the book's sources directory
|
||||||
if [ -z $BOOK ] ; then BOOK=lfs-$LFSVRS ; fi
|
if [ -z $BOOK ] ; then BOOK=lfs-$LFSVRS ; fi
|
||||||
|
|
||||||
if [ -z $WC ] ; then
|
if [ -z $WC ] ; then
|
||||||
|
@ -460,7 +460,8 @@ build_Makefile() {
|
||||||
# Insert instructions for unpacking the package and changing directories
|
# Insert instructions for unpacking the package and changing directories
|
||||||
echo -e "\t\$(call unpack,$FILE)" >> $MKFILE.tmp
|
echo -e "\t\$(call unpack,$FILE)" >> $MKFILE.tmp
|
||||||
echo -e "\t-ROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\" >> $MKFILE.tmp
|
echo -e "\t-ROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\" >> $MKFILE.tmp
|
||||||
echo -e "\tcd \$(SRC)/\$\$ROOT && \\" >> $MKFILE.tmp
|
echo -e "\techo \"PKGDIR=\$(SRC)/\$\$ROOT\" > envars && \\" >> $MKFILE.tmp
|
||||||
|
echo -e "\techo \"export PKGDIR\" >> envars && \\" >> $MKFILE.tmp
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Inser date and disk usage at the top of the log file.
|
# Inser date and disk usage at the top of the log file.
|
||||||
|
@ -468,7 +469,8 @@ build_Makefile() {
|
||||||
|
|
||||||
# For the Re-Adjusting phase we must to cd to the binutils-build directory.
|
# For the Re-Adjusting phase we must to cd to the binutils-build directory.
|
||||||
if [ "$i" = "067-readjusting" ] ; then
|
if [ "$i" = "067-readjusting" ] ; then
|
||||||
echo -e "\tcd \$(SRC)/binutils-build && \\" >> $MKFILE.tmp
|
echo -e "\techo \"PKGDIR=\$(SRC)/binutils-build\" > envars && \\" >> $MKFILE.tmp
|
||||||
|
echo -e "\techo \"export PKGDIR\" >> envars && \\" >> $MKFILE.tmp
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Insert the script run
|
# Insert the script run
|
||||||
|
|
Reference in a new issue