r2042 - jhalfs/trunk

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sun Oct 2 07:28:31 PDT 2005


Author: manuel
Date: 2005-10-02 08:28:31 -0600 (Sun, 02 Oct 2005)
New Revision: 2042

Modified:
   jhalfs/trunk/dump-lfs-scripts.xsl
   jhalfs/trunk/jhalfs
Log:
Using PKGDIR in all chapters.

Modified: jhalfs/trunk/dump-lfs-scripts.xsl
===================================================================
--- jhalfs/trunk/dump-lfs-scripts.xsl	2005-10-02 14:06:01 UTC (rev 2041)
+++ jhalfs/trunk/dump-lfs-scripts.xsl	2005-10-02 14:28:31 UTC (rev 2042)
@@ -44,9 +44,9 @@
         <!-- Creating dirs and files -->
       <exsl:document href="{$dirname}/{$order}-{$filename}" method="text">
         <xsl:text>#!/bin/sh&#xA;&#xA;</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 &&&#xA;</xsl:text>
         </xsl:if>
         <xsl:apply-templates select=".//para/userinput | .//screen"/>
@@ -61,9 +61,9 @@
         <xsl:otherwise>
           <xsl:apply-templates select="userinput" mode="screen"/>
           <xsl:if test="position() != last() and
-              not(contains(string(),'EOF')) and
-              not(contains(string(),'check')) and
-              not(ancestor::sect1[@id='ch-tools-stripping'])">
+                  not(contains(string(),'EOF')) and
+                  not(contains(string(),'check')) and
+                  not(ancestor::sect1[@id='ch-tools-stripping'])">
             <xsl:text> &&</xsl:text>
           </xsl:if>
           <xsl:text>&#xA;</xsl:text>
@@ -73,8 +73,9 @@
   </xsl:template>
 
   <xsl:template match="para/userinput">
-    <xsl:if test="$testsuite != '0' and (contains(string(),'test') or
-        contains(string(),'check'))">
+    <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>
       <xsl:value-of select="substring-after(string(),'make')"/>

Modified: jhalfs/trunk/jhalfs
===================================================================
--- jhalfs/trunk/jhalfs	2005-10-02 14:06:01 UTC (rev 2041)
+++ jhalfs/trunk/jhalfs	2005-10-02 14:28:31 UTC (rev 2042)
@@ -158,7 +158,7 @@
   # 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 @@
       # 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 @@
 
     # 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




More information about the alfs-log mailing list