r3505 - in jhalfs/branches/experimental: LFS XSL common/libs

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sat Sep 29 07:26:11 PDT 2007


Author: manuel
Date: 2007-09-29 08:26:11 -0600 (Sat, 29 Sep 2007)
New Revision: 3505

Modified:
   jhalfs/branches/experimental/LFS/lfs.xsl
   jhalfs/branches/experimental/XSL/blfs-tool.xsl
   jhalfs/branches/experimental/common/libs/func_book_parser
Log:
Generating blfs-tool dependencies scripts.

Modified: jhalfs/branches/experimental/LFS/lfs.xsl
===================================================================
--- jhalfs/branches/experimental/LFS/lfs.xsl	2007-09-29 13:55:10 UTC (rev 3504)
+++ jhalfs/branches/experimental/LFS/lfs.xsl	2007-09-29 14:26:11 UTC (rev 3505)
@@ -406,10 +406,10 @@
                   not(@id='ch-system-revisedchroot')">
       <xsl:choose>
         <xsl:when test="ancestor::chapter[@id='chapter-temporary-tools']">
-          <xsl:text>echo -e "\nKB: `du -skx --exclude=jhalfs --exclude=lost+found $LFS`\n"&#xA;</xsl:text>
+          <xsl:text>&#xA;echo -e "\nKB: `du -skx --exclude=jhalfs --exclude=lost+found $LFS`\n"&#xA;</xsl:text>
         </xsl:when>
         <xsl:otherwise>
-          <xsl:text>echo -e "\nKB: `du -skx --exclude=jhalfs --exclude=lost+found /`\n"&#xA;</xsl:text>
+          <xsl:text>&#xA;echo -e "\nKB: `du -skx --exclude=jhalfs --exclude=lost+found /`\n"&#xA;</xsl:text>
         </xsl:otherwise>
       </xsl:choose>
     </xsl:if>

Modified: jhalfs/branches/experimental/XSL/blfs-tool.xsl
===================================================================
--- jhalfs/branches/experimental/XSL/blfs-tool.xsl	2007-09-29 13:55:10 UTC (rev 3504)
+++ jhalfs/branches/experimental/XSL/blfs-tool.xsl	2007-09-29 14:26:11 UTC (rev 3505)
@@ -12,6 +12,7 @@
   <xsl:template name="blfs-tool">
       <!-- Fixed directory and ch_order values -->
     <xsl:variable name="basedir">blfs-tool-deps/30_</xsl:variable>
+
       <!-- libxml2 -->
     <exsl:document href="{$basedir}01-libxml2" method="text">
       <xsl:call-template name="header"/>
@@ -35,6 +36,7 @@
       <xsl:call-template name="clean_sources"/>
       <xsl:call-template name="footer"/>
     </exsl:document>
+
       <!-- libxslt -->
     <exsl:document href="{$basedir}02-libxslt" method="text">
       <xsl:call-template name="header"/>
@@ -58,6 +60,7 @@
       <xsl:call-template name="clean_sources"/>
       <xsl:call-template name="footer"/>
     </exsl:document>
+
       <!-- tidy -->
     <exsl:document href="{$basedir}03-tidy" method="text">
       <xsl:call-template name="header"/>
@@ -82,6 +85,7 @@
       <xsl:call-template name="clean_sources"/>
       <xsl:call-template name="footer"/>
     </exsl:document>
+
       <!-- unzip -->
     <exsl:document href="{$basedir}04-unzip" method="text">
       <xsl:call-template name="header"/>
@@ -107,6 +111,7 @@
       <xsl:call-template name="clean_sources"/>
       <xsl:call-template name="footer"/>
     </exsl:document>
+
       <!-- DocBook XML DTD -->
     <exsl:document href="{$basedir}05-docbook-xml" method="text">
       <xsl:call-template name="header"/>
@@ -124,6 +129,7 @@
 mkdir docbook-xml
 cd docbook-xml
 unzip ../docbook-xml-4.5.zip
+SECONDS=0
 install -v -d -m755 /usr/share/xml/docbook/xml-dtd-4.5
 install -v -d -m755 /etc/xml
 chown -R root:root .
@@ -221,11 +227,14 @@
       </xsl:text>
       <xsl:call-template name="disk_usage"/>
       <xsl:text>
+SECS=$SECONDS
 cd /sources
 rm -rf docbook-xml
+SECONDS=$SECS
       </xsl:text>
       <xsl:call-template name="footer"/>
     </exsl:document>
+
       <!-- DocBook XSL (empty and commented-out, it's not required for now) -->
     <!--<exsl:document href="{$basedir}06-docbook-xsl" method="text">
       <xsl:call-template name="header"/>
@@ -246,7 +255,8 @@
       <xsl:call-template name="clean_sources"/>
       <xsl:call-template name="footer"/>
     </exsl:document>-->
-      <!--  -->
+
+      <!-- gpm -->
     <exsl:document href="{$basedir}07-gpm" method="text">
       <xsl:call-template name="header"/>
       <xsl:text>
@@ -276,7 +286,8 @@
       <xsl:call-template name="clean_sources"/>
       <xsl:call-template name="footer"/>
     </exsl:document>
-      <!--  -->
+
+      <!-- lynx -->
     <exsl:document href="{$basedir}08-lynx" method="text">
       <xsl:call-template name="header"/>
       <xsl:text>
@@ -306,7 +317,8 @@
       <xsl:call-template name="clean_sources"/>
       <xsl:call-template name="footer"/>
     </exsl:document>
-      <!--  -->
+
+      <!-- sudo -->
     <exsl:document href="{$basedir}09-sudo" method="text">
       <xsl:call-template name="header"/>
       <xsl:text>
@@ -334,7 +346,8 @@
       <xsl:call-template name="clean_sources"/>
       <xsl:call-template name="footer"/>
     </exsl:document>
-      <!--  -->
+
+      <!-- wget -->
     <exsl:document href="{$basedir}10-wget" method="text">
       <xsl:call-template name="header"/>
       <xsl:text>
@@ -357,7 +370,8 @@
       <xsl:call-template name="clean_sources"/>
       <xsl:call-template name="footer"/>
     </exsl:document>
-      <!--  -->
+
+      <!-- subversion -->
     <exsl:document href="{$basedir}11-subversion" method="text">
       <xsl:call-template name="header"/>
       <xsl:text>

Modified: jhalfs/branches/experimental/common/libs/func_book_parser
===================================================================
--- jhalfs/branches/experimental/common/libs/func_book_parser	2007-09-29 13:55:10 UTC (rev 3504)
+++ jhalfs/branches/experimental/common/libs/func_book_parser	2007-09-29 14:26:11 UTC (rev 3505)
@@ -80,7 +80,7 @@
   fi
   echo -n "Extracting commands for"
 
-  # Dump the commands in shell script form from the HLFS book.
+  # Dump the commands in shell script form from the book.
   case ${PROGNAME} in
     clfs)
         echo -n " ${L_arrow}${BOLD}$ARCH${R_arrow} target architecture... "
@@ -144,14 +144,14 @@
                  --stringparam timezone $TIMEZONE \
                  --stringparam page $PAGE \
                  --stringparam lang $LANG \
+                 --stringparam custom-tools $CUSTOM_TOOLS \
+                 --stringparam blfs-tool $BLFS_TOOL \
                  -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1
       ;;
     *)  echo -n " ${L_arrow}${BOLD}${PROGNAME}${R_arrow} book invalid, terminate build... "
         exit 1 ;;
   esac
 
-  [[ "${BLFS_TOOL}" = "y" ]] && copy_blfs_deps_scripts
-
   echo "done"
 
   # Make the scripts executable.




More information about the alfs-log mailing list