From 66c3162389127d305a006058535e2365a0d25e52 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Sat, 29 Sep 2007 14:26:11 +0000 Subject: [PATCH] Generating blfs-tool dependencies scripts. --- LFS/lfs.xsl | 4 ++-- XSL/blfs-tool.xsl | 24 +++++++++++++++++++----- common/libs/func_book_parser | 6 +++--- 3 files changed, 24 insertions(+), 10 deletions(-) diff --git a/LFS/lfs.xsl b/LFS/lfs.xsl index 0570783..b928b34 100644 --- a/LFS/lfs.xsl +++ b/LFS/lfs.xsl @@ -406,10 +406,10 @@ not(@id='ch-system-revisedchroot')"> - echo -e "\nKB: `du -skx --exclude=jhalfs --exclude=lost+found $LFS`\n" + echo -e "\nKB: `du -skx --exclude=jhalfs --exclude=lost+found $LFS`\n" - echo -e "\nKB: `du -skx --exclude=jhalfs --exclude=lost+found /`\n" + echo -e "\nKB: `du -skx --exclude=jhalfs --exclude=lost+found /`\n" diff --git a/XSL/blfs-tool.xsl b/XSL/blfs-tool.xsl index eb33747..1bd12c7 100644 --- a/XSL/blfs-tool.xsl +++ b/XSL/blfs-tool.xsl @@ -12,6 +12,7 @@ blfs-tool-deps/30_ + @@ -35,6 +36,7 @@ make install + @@ -58,6 +60,7 @@ make install + @@ -82,6 +85,7 @@ make -C htmldoc install_apidocs + @@ -107,6 +111,7 @@ make prefix=/usr install + @@ -124,6 +129,7 @@ cd /sources 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 @@ done +SECS=$SECONDS cd /sources rm -rf docbook-xml +SECONDS=$SECS + - + + @@ -276,7 +286,8 @@ ldconfig - + + @@ -306,7 +317,8 @@ chgrp -v -R root /usr/share/doc/lynx-2.8.6/lynx_doc - + + @@ -334,7 +346,8 @@ make install - + + @@ -357,7 +370,8 @@ make install - + + diff --git a/common/libs/func_book_parser b/common/libs/func_book_parser index adcf20b..72974f5 100644 --- a/common/libs/func_book_parser +++ b/common/libs/func_book_parser @@ -80,7 +80,7 @@ extract_commands() { # 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 @@ extract_commands() { # --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.