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 -->
|
||||
<exsl:document href="{$dirname}/{$order}-{$filename}" method="text">
|
||||
<xsl:text>#!/bin/sh

</xsl:text>
|
||||
<xsl:if test="(sect2[@role='installation'] or
|
||||
@id='ch-tools-adjusting') and
|
||||
ancestor::chapter[@id='chapter-temporary-tools']">
|
||||
<xsl:if test="sect2[@role='installation'] or
|
||||
@id='ch-tools-adjusting' or
|
||||
@id='ch-system-readjusting'">
|
||||
<xsl:text>cd $PKGDIR &&
</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:apply-templates select=".//para/userinput | .//screen"/>
|
||||
|
@ -73,7 +73,8 @@
|
|||
</xsl:template>
|
||||
|
||||
<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'))">
|
||||
<xsl:value-of select="substring-before(string(),'make')"/>
|
||||
<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
|
||||
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 $WC ] ; then
|
||||
|
@ -460,7 +460,8 @@ build_Makefile() {
|
|||
# Insert instructions for unpacking the package and changing directories
|
||||
echo -e "\t\$(call unpack,$FILE)" >> $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
|
||||
|
||||
# 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.
|
||||
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
|
||||
|
||||
# Insert the script run
|
||||
|
|
Reference in a new issue