Added template book.xsl file.
Fixed a few dependencies.
This commit is contained in:
parent
460ea6306b
commit
4761b5a612
3 changed files with 25 additions and 6 deletions
13
BLFS/libs/book.xsl
Normal file
13
BLFS/libs/book.xsl
Normal 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>
|
|
@ -46,6 +46,8 @@ inline_doc
|
|||
|
||||
#---------------------
|
||||
# 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,/.*,,'`
|
||||
|
||||
if [[ ! -d ../$BLFS_XML ]] ; then
|
||||
|
@ -195,13 +197,18 @@ inline_doc
|
|||
|
||||
db ) # The proper version of DB is installed in LFS
|
||||
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 ;;
|
||||
perl-* | tk-perl ) DEP=perl-modules ;;
|
||||
|
||||
# Orphan links (proper link must be created when generating the book)
|
||||
arts ) DEP=aRts ;;
|
||||
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
|
||||
# X is a meta-package, thus handled in another way.
|
||||
LPRng | cups ) DEP=$PRINT_SERVER ;;
|
||||
|
|
|
@ -99,8 +99,7 @@ inline_doc
|
|||
|
||||
echo -en "\tGenerating the HTML book ..."
|
||||
xsltproc --xinclude --nonet --stringparam base.dir HTML/ \
|
||||
--stringparam chunk.quietly 1 \
|
||||
../$BLFS_XML/stylesheets/blfs-chunked.xsl \
|
||||
../libs/book.xsl \
|
||||
$TARGET-index.xml > xsltproc.log 2>&1
|
||||
|
||||
mkdir HTML/{stylesheets,images}
|
||||
|
|
Reference in a new issue