mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +01:00
Use a configurable XSLROOTDIR to point to the DocBook XSL stylesheets
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3825 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
1baa579d9d
commit
a942c0a271
6
INSTALL
6
INSTALL
@ -22,6 +22,12 @@ If all you want to do is convert XML to HTML perform the following:
|
|||||||
|
|
||||||
* DocBook XSL Stylesheets
|
* DocBook XSL Stylesheets
|
||||||
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/docbook-xsl.html
|
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/docbook-xsl.html
|
||||||
|
- additionally create a link from
|
||||||
|
/usr/share/xml/docbook/xsl-stylesheets-1.65.1 to
|
||||||
|
/usr/share/xml/docbook/xsl-stylesheets-current
|
||||||
|
|
||||||
|
cd /usr/share/xml/docbook/ &&
|
||||||
|
ln -s xsl-stylesheets-1.65.1 xsl-stylesheets-current
|
||||||
|
|
||||||
* HTMLTidy
|
* HTMLTidy
|
||||||
- http://tidy.sourceforge.net/
|
- http://tidy.sourceforge.net/
|
||||||
|
3
Makefile
3
Makefile
@ -3,6 +3,7 @@ CHUNK_QUIET=0
|
|||||||
PDF_OUTPUT=LFS-BOOK.pdf
|
PDF_OUTPUT=LFS-BOOK.pdf
|
||||||
PRINT_OUTPUT=LFS-BOOK-PRINTABLE.pdf
|
PRINT_OUTPUT=LFS-BOOK-PRINTABLE.pdf
|
||||||
NOCHUNKS_OUTPUT=LFS-BOOK.html
|
NOCHUNKS_OUTPUT=LFS-BOOK.html
|
||||||
|
XSLROOTDIR=/usr/share/xml/docbook/xsl-stylesheets-current
|
||||||
|
|
||||||
lfs:
|
lfs:
|
||||||
xsltproc --xinclude --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
|
xsltproc --xinclude --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
|
||||||
@ -17,7 +18,7 @@ lfs:
|
|||||||
if [ ! -e $(BASEDIR)/images ]; then \
|
if [ ! -e $(BASEDIR)/images ]; then \
|
||||||
mkdir -p $(BASEDIR)/images; \
|
mkdir -p $(BASEDIR)/images; \
|
||||||
fi;
|
fi;
|
||||||
cp /usr/share/xml/docbook/xsl-stylesheets-1.65.1/images/*.png \
|
cp $(XSLROOTDIR)/images/*.png \
|
||||||
$(BASEDIR)/images
|
$(BASEDIR)/images
|
||||||
cd $(BASEDIR)/; sed -i -e "s@../stylesheets@stylesheets@g" \
|
cd $(BASEDIR)/; sed -i -e "s@../stylesheets@stylesheets@g" \
|
||||||
index.html part1.html part2.html part3.html longindex.html
|
index.html part1.html part2.html part3.html longindex.html
|
||||||
|
Loading…
Reference in New Issue
Block a user