Generating blfs-tool dependencies scripts.
This commit is contained in:
parent
9c60012051
commit
66c3162389
3 changed files with 24 additions and 10 deletions
|
@ -406,10 +406,10 @@
|
||||||
not(@id='ch-system-revisedchroot')">
|
not(@id='ch-system-revisedchroot')">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="ancestor::chapter[@id='chapter-temporary-tools']">
|
<xsl:when test="ancestor::chapter[@id='chapter-temporary-tools']">
|
||||||
<xsl:text>echo -e "\nKB: `du -skx --exclude=jhalfs --exclude=lost+found $LFS`\n"
</xsl:text>
|
<xsl:text>
echo -e "\nKB: `du -skx --exclude=jhalfs --exclude=lost+found $LFS`\n"
</xsl:text>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:text>echo -e "\nKB: `du -skx --exclude=jhalfs --exclude=lost+found /`\n"
</xsl:text>
|
<xsl:text>
echo -e "\nKB: `du -skx --exclude=jhalfs --exclude=lost+found /`\n"
</xsl:text>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
<xsl:template name="blfs-tool">
|
<xsl:template name="blfs-tool">
|
||||||
<!-- Fixed directory and ch_order values -->
|
<!-- Fixed directory and ch_order values -->
|
||||||
<xsl:variable name="basedir">blfs-tool-deps/30_</xsl:variable>
|
<xsl:variable name="basedir">blfs-tool-deps/30_</xsl:variable>
|
||||||
|
|
||||||
<!-- libxml2 -->
|
<!-- libxml2 -->
|
||||||
<exsl:document href="{$basedir}01-libxml2" method="text">
|
<exsl:document href="{$basedir}01-libxml2" method="text">
|
||||||
<xsl:call-template name="header"/>
|
<xsl:call-template name="header"/>
|
||||||
|
@ -35,6 +36,7 @@ make install
|
||||||
<xsl:call-template name="clean_sources"/>
|
<xsl:call-template name="clean_sources"/>
|
||||||
<xsl:call-template name="footer"/>
|
<xsl:call-template name="footer"/>
|
||||||
</exsl:document>
|
</exsl:document>
|
||||||
|
|
||||||
<!-- libxslt -->
|
<!-- libxslt -->
|
||||||
<exsl:document href="{$basedir}02-libxslt" method="text">
|
<exsl:document href="{$basedir}02-libxslt" method="text">
|
||||||
<xsl:call-template name="header"/>
|
<xsl:call-template name="header"/>
|
||||||
|
@ -58,6 +60,7 @@ make install
|
||||||
<xsl:call-template name="clean_sources"/>
|
<xsl:call-template name="clean_sources"/>
|
||||||
<xsl:call-template name="footer"/>
|
<xsl:call-template name="footer"/>
|
||||||
</exsl:document>
|
</exsl:document>
|
||||||
|
|
||||||
<!-- tidy -->
|
<!-- tidy -->
|
||||||
<exsl:document href="{$basedir}03-tidy" method="text">
|
<exsl:document href="{$basedir}03-tidy" method="text">
|
||||||
<xsl:call-template name="header"/>
|
<xsl:call-template name="header"/>
|
||||||
|
@ -82,6 +85,7 @@ make -C htmldoc install_apidocs
|
||||||
<xsl:call-template name="clean_sources"/>
|
<xsl:call-template name="clean_sources"/>
|
||||||
<xsl:call-template name="footer"/>
|
<xsl:call-template name="footer"/>
|
||||||
</exsl:document>
|
</exsl:document>
|
||||||
|
|
||||||
<!-- unzip -->
|
<!-- unzip -->
|
||||||
<exsl:document href="{$basedir}04-unzip" method="text">
|
<exsl:document href="{$basedir}04-unzip" method="text">
|
||||||
<xsl:call-template name="header"/>
|
<xsl:call-template name="header"/>
|
||||||
|
@ -107,6 +111,7 @@ make prefix=/usr install
|
||||||
<xsl:call-template name="clean_sources"/>
|
<xsl:call-template name="clean_sources"/>
|
||||||
<xsl:call-template name="footer"/>
|
<xsl:call-template name="footer"/>
|
||||||
</exsl:document>
|
</exsl:document>
|
||||||
|
|
||||||
<!-- DocBook XML DTD -->
|
<!-- DocBook XML DTD -->
|
||||||
<exsl:document href="{$basedir}05-docbook-xml" method="text">
|
<exsl:document href="{$basedir}05-docbook-xml" method="text">
|
||||||
<xsl:call-template name="header"/>
|
<xsl:call-template name="header"/>
|
||||||
|
@ -124,6 +129,7 @@ cd /sources
|
||||||
mkdir docbook-xml
|
mkdir docbook-xml
|
||||||
cd docbook-xml
|
cd docbook-xml
|
||||||
unzip ../docbook-xml-4.5.zip
|
unzip ../docbook-xml-4.5.zip
|
||||||
|
SECONDS=0
|
||||||
install -v -d -m755 /usr/share/xml/docbook/xml-dtd-4.5
|
install -v -d -m755 /usr/share/xml/docbook/xml-dtd-4.5
|
||||||
install -v -d -m755 /etc/xml
|
install -v -d -m755 /etc/xml
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
|
@ -221,11 +227,14 @@ done
|
||||||
</xsl:text>
|
</xsl:text>
|
||||||
<xsl:call-template name="disk_usage"/>
|
<xsl:call-template name="disk_usage"/>
|
||||||
<xsl:text>
|
<xsl:text>
|
||||||
|
SECS=$SECONDS
|
||||||
cd /sources
|
cd /sources
|
||||||
rm -rf docbook-xml
|
rm -rf docbook-xml
|
||||||
|
SECONDS=$SECS
|
||||||
</xsl:text>
|
</xsl:text>
|
||||||
<xsl:call-template name="footer"/>
|
<xsl:call-template name="footer"/>
|
||||||
</exsl:document>
|
</exsl:document>
|
||||||
|
|
||||||
<!-- DocBook XSL (empty and commented-out, it's not required for now) -->
|
<!-- DocBook XSL (empty and commented-out, it's not required for now) -->
|
||||||
<!--<exsl:document href="{$basedir}06-docbook-xsl" method="text">
|
<!--<exsl:document href="{$basedir}06-docbook-xsl" method="text">
|
||||||
<xsl:call-template name="header"/>
|
<xsl:call-template name="header"/>
|
||||||
|
@ -246,7 +255,8 @@ cd $PKGDIR
|
||||||
<xsl:call-template name="clean_sources"/>
|
<xsl:call-template name="clean_sources"/>
|
||||||
<xsl:call-template name="footer"/>
|
<xsl:call-template name="footer"/>
|
||||||
</exsl:document>-->
|
</exsl:document>-->
|
||||||
<!-- -->
|
|
||||||
|
<!-- gpm -->
|
||||||
<exsl:document href="{$basedir}07-gpm" method="text">
|
<exsl:document href="{$basedir}07-gpm" method="text">
|
||||||
<xsl:call-template name="header"/>
|
<xsl:call-template name="header"/>
|
||||||
<xsl:text>
|
<xsl:text>
|
||||||
|
@ -276,7 +286,8 @@ ldconfig
|
||||||
<xsl:call-template name="clean_sources"/>
|
<xsl:call-template name="clean_sources"/>
|
||||||
<xsl:call-template name="footer"/>
|
<xsl:call-template name="footer"/>
|
||||||
</exsl:document>
|
</exsl:document>
|
||||||
<!-- -->
|
|
||||||
|
<!-- lynx -->
|
||||||
<exsl:document href="{$basedir}08-lynx" method="text">
|
<exsl:document href="{$basedir}08-lynx" method="text">
|
||||||
<xsl:call-template name="header"/>
|
<xsl:call-template name="header"/>
|
||||||
<xsl:text>
|
<xsl:text>
|
||||||
|
@ -306,7 +317,8 @@ chgrp -v -R root /usr/share/doc/lynx-2.8.6/lynx_doc
|
||||||
<xsl:call-template name="clean_sources"/>
|
<xsl:call-template name="clean_sources"/>
|
||||||
<xsl:call-template name="footer"/>
|
<xsl:call-template name="footer"/>
|
||||||
</exsl:document>
|
</exsl:document>
|
||||||
<!-- -->
|
|
||||||
|
<!-- sudo -->
|
||||||
<exsl:document href="{$basedir}09-sudo" method="text">
|
<exsl:document href="{$basedir}09-sudo" method="text">
|
||||||
<xsl:call-template name="header"/>
|
<xsl:call-template name="header"/>
|
||||||
<xsl:text>
|
<xsl:text>
|
||||||
|
@ -334,7 +346,8 @@ make install
|
||||||
<xsl:call-template name="clean_sources"/>
|
<xsl:call-template name="clean_sources"/>
|
||||||
<xsl:call-template name="footer"/>
|
<xsl:call-template name="footer"/>
|
||||||
</exsl:document>
|
</exsl:document>
|
||||||
<!-- -->
|
|
||||||
|
<!-- wget -->
|
||||||
<exsl:document href="{$basedir}10-wget" method="text">
|
<exsl:document href="{$basedir}10-wget" method="text">
|
||||||
<xsl:call-template name="header"/>
|
<xsl:call-template name="header"/>
|
||||||
<xsl:text>
|
<xsl:text>
|
||||||
|
@ -357,7 +370,8 @@ make install
|
||||||
<xsl:call-template name="clean_sources"/>
|
<xsl:call-template name="clean_sources"/>
|
||||||
<xsl:call-template name="footer"/>
|
<xsl:call-template name="footer"/>
|
||||||
</exsl:document>
|
</exsl:document>
|
||||||
<!-- -->
|
|
||||||
|
<!-- subversion -->
|
||||||
<exsl:document href="{$basedir}11-subversion" method="text">
|
<exsl:document href="{$basedir}11-subversion" method="text">
|
||||||
<xsl:call-template name="header"/>
|
<xsl:call-template name="header"/>
|
||||||
<xsl:text>
|
<xsl:text>
|
||||||
|
|
|
@ -80,7 +80,7 @@ extract_commands() { #
|
||||||
fi
|
fi
|
||||||
echo -n "Extracting commands for"
|
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
|
case ${PROGNAME} in
|
||||||
clfs)
|
clfs)
|
||||||
echo -n " ${L_arrow}${BOLD}$ARCH${R_arrow} target architecture... "
|
echo -n " ${L_arrow}${BOLD}$ARCH${R_arrow} target architecture... "
|
||||||
|
@ -144,14 +144,14 @@ extract_commands() { #
|
||||||
--stringparam timezone $TIMEZONE \
|
--stringparam timezone $TIMEZONE \
|
||||||
--stringparam page $PAGE \
|
--stringparam page $PAGE \
|
||||||
--stringparam lang $LANG \
|
--stringparam lang $LANG \
|
||||||
|
--stringparam custom-tools $CUSTOM_TOOLS \
|
||||||
|
--stringparam blfs-tool $BLFS_TOOL \
|
||||||
-o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1
|
-o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1
|
||||||
;;
|
;;
|
||||||
*) echo -n " ${L_arrow}${BOLD}${PROGNAME}${R_arrow} book invalid, terminate build... "
|
*) echo -n " ${L_arrow}${BOLD}${PROGNAME}${R_arrow} book invalid, terminate build... "
|
||||||
exit 1 ;;
|
exit 1 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
[[ "${BLFS_TOOL}" = "y" ]] && copy_blfs_deps_scripts
|
|
||||||
|
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|
||||||
# Make the scripts executable.
|
# Make the scripts executable.
|
||||||
|
|
Reference in a new issue