1 BASEDIR
=~
/lfs-editors-guide
3 PDF_OUTPUT
=LFS-EDITORS-GUIDE.pdf
4 NOCHUNKS_OUTPUT
=LFS-EDITORS-GUIDE.html
5 XSLROOTDIR
=/usr
/share
/xml
/docbook
/xsl-stylesheets-current
8 xsltproc
--xinclude
--nonet
-stringparam chunk.quietly
$(CHUNK_QUIET
) \
9 -stringparam base.
dir $(BASEDIR
)/ ..
/BOOK
/stylesheets
/lfs-chunked.xsl index.xml
11 if
[ ! -e
$(BASEDIR
)/stylesheets
]; then \
12 mkdir
-p
$(BASEDIR
)/stylesheets
; \
14 cp stylesheets
/*.css
$(BASEDIR
)/stylesheets
16 if
[ ! -e
$(BASEDIR
)/images
]; then \
17 mkdir
-p
$(BASEDIR
)/images
; \
19 cp
$(XSLROOTDIR
)/images
/*.png \
21 cd
$(BASEDIR
)/; sed
-i
-e
"s@../stylesheets@stylesheets@g" \
23 cd
$(BASEDIR
)/; sed
-i
-e
"s@../images@images@g" \
26 for filename in
`find $(BASEDIR) -name "*.html"`; do \
27 tidy
-config tidy.conf
$$filename; \
31 for filename in
`find $(BASEDIR) -name "*.html"`; do \
32 sed
-i
-e
"s@text/html@application/xhtml+xml@g" $$filename; \
36 xsltproc
--xinclude
--nonet
--output
$(BASEDIR
)/lfs-pdf.fo \
37 stylesheets
/lfs-pdf.xsl index.xml
38 sed
-i
-e
"s/inherit/all/" $(BASEDIR
)/lfs-pdf.fo
39 fop.sh
$(BASEDIR
)/lfs-pdf.fo
$(BASEDIR
)/$(PDF_OUTPUT
)
40 rm $(BASEDIR
)/lfs-pdf.fo
43 xsltproc
--xinclude
--nonet
-stringparam profile.condition html \
44 --output
$(BASEDIR
)/$(NOCHUNKS_OUTPUT
) \
45 stylesheets
/lfs-nochunks.xsl index.xml
47 tidy
-config tidy.conf
$(BASEDIR
)/$(NOCHUNKS_OUTPUT
) || true
49 sed
-i
-e
"s@text/html@application/xhtml+xml@g" \
50 $(BASEDIR
)/$(NOCHUNKS_OUTPUT
)
53 xmllint
--noout
--nonet
--xinclude
--postvalid index.xml