Added template book.xsl file.

Fixed a few dependencies.
This commit is contained in:
Manuel Canales Esparcia 2006-06-02 20:27:01 +00:00
parent 460ea6306b
commit 4761b5a612
3 changed files with 25 additions and 6 deletions

13
BLFS/libs/book.xsl Normal file
View file

@ -0,0 +1,13 @@
<?xml version='1.0' encoding='ISO-8859-1'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml"
version="1.0">
<!-- $Id$ -->
<!-- NOTE: the base dir (blfs-xml) must be changed to FAKEDIR on the
final version and set it to the proper dir via a sed in ./blfs -->
<xsl:import href="../blfs-xml/stylesheets/blfs-chunked.xsl"/>
</xsl:stylesheet>

View file

@ -46,6 +46,8 @@ inline_doc
#--------------------- #---------------------
# The BLFS sources directory. # The BLFS sources directory.
# Note: for book.xsl this value must be set via a sed in ./blfs.
# For consistency, we should to do the same here.
BLFS_XML=`echo $PKGXML | sed -e 's,/.*,,'` BLFS_XML=`echo $PKGXML | sed -e 's,/.*,,'`
if [[ ! -d ../$BLFS_XML ]] ; then if [[ ! -d ../$BLFS_XML ]] ; then
@ -195,13 +197,18 @@ inline_doc
db ) # The proper version of DB is installed in LFS db ) # The proper version of DB is installed in LFS
continue ;; continue ;;
hal-requirements | hal-runtime-dependencies ) # Don't have their own XML file
# Don't have their own XML file
hal-requirements | hal-runtime-dependencies )
continue ;; continue ;;
perl-* | tk-perl ) DEP=perl-modules ;;
# Orphan links (proper link must be created when generating the book) # Orphan links (proper link must be created when generating the book)
arts ) DEP=aRts ;; arts ) DEP=aRts ;;
kde ) DEP=kde-core ;; kde ) DEP=kde-core ;;
perl-* | tk-perl ) DEP=perl-modules ;;
GNOME-desktop-file-utils ) DEP=desktop-file-utils ;;
GNOME-shared-mime-info ) DEP=shared-mime-info ;;
# Set values for alternative packages # Set values for alternative packages
# X is a meta-package, thus handled in another way. # X is a meta-package, thus handled in another way.
LPRng | cups ) DEP=$PRINT_SERVER ;; LPRng | cups ) DEP=$PRINT_SERVER ;;

View file

@ -99,8 +99,7 @@ inline_doc
echo -en "\tGenerating the HTML book ..." echo -en "\tGenerating the HTML book ..."
xsltproc --xinclude --nonet --stringparam base.dir HTML/ \ xsltproc --xinclude --nonet --stringparam base.dir HTML/ \
--stringparam chunk.quietly 1 \ ../libs/book.xsl \
../$BLFS_XML/stylesheets/blfs-chunked.xsl \
$TARGET-index.xml > xsltproc.log 2>&1 $TARGET-index.xml > xsltproc.log 2>&1
mkdir HTML/{stylesheets,images} mkdir HTML/{stylesheets,images}