6.0
Rev | Line | |
---|
[00cc7ce] | 1 | BASEDIR=/home/macana/tmp/test-book-LFS/
|
---|
[287ea55] | 2 |
|
---|
| 3 | lfs:
|
---|
[00cc7ce] | 4 | xsltproc --xinclude --nonet --stringparam base.dir $(BASEDIR) \
|
---|
| 5 | stylesheets/lfs-chunked.xsl index.xml
|
---|
| 6 |
|
---|
| 7 | mkdir -p $(BASEDIR)stylesheets && \
|
---|
| 8 | cp stylesheets/*.css $(BASEDIR)stylesheets
|
---|
| 9 |
|
---|
| 10 | mkdir -p $(BASEDIR)images && \
|
---|
| 11 | cp /usr/share/xml/docbook/xsl-stylesheets-1.65.1/images/*.png \
|
---|
| 12 | $(BASEDIR)images
|
---|
| 13 |
|
---|
| 14 | cd $(BASEDIR); sed -i -e "s@../stylesheets@stylesheets@g" \
|
---|
[3001a42] | 15 | *.html
|
---|
[00cc7ce] | 16 | cd $(BASEDIR); sed -i -e "s@../images@images@g" \
|
---|
[3001a42] | 17 | *.html
|
---|
[287ea55] | 18 |
|
---|
[00cc7ce] | 19 | cd $(BASEDIR); goTidy
|
---|
[287ea55] | 20 |
|
---|
[3e46693] | 21 | pdf:
|
---|
[00cc7ce] | 22 | xsltproc --xinclude --nonet --stringparam profile.condition print --output $(BASEDIR)lfs-pdf.xml \
|
---|
| 23 | stylesheets/lfs-profile.xsl index.xml
|
---|
| 24 | xsltproc --nonet --output $(BASEDIR)lfs-pdf.fo stylesheets/lfs-pdf.xsl $(BASEDIR)lfs-pdf.xml
|
---|
| 25 | cd $(BASEDIR); sed -i -e "s@inherit@all@" lfs-pdf.fo
|
---|
| 26 | cd $(BASEDIR); JAVA_HOME=/opt/java/jre1.3.1_02 FOP_HOME=/home/macana/tmp/fop \
|
---|
| 27 | /home/macana/tmp/fop/fop.sh lfs-pdf.fo lfs-pdf.pdf
|
---|
[91364a5] | 28 |
|
---|
| 29 | nochunks:
|
---|
[00cc7ce] | 30 | xsltproc --xinclude --nonet --output $(BASEDIR)lfs-nochunk.html \
|
---|
[91364a5] | 31 | stylesheets/lfs-nochunks.xsl index.xml
|
---|
[00cc7ce] | 32 | tidy -config tidy.conf $(BASEDIR)lfs-nochunk.html || true
|
---|
[91364a5] | 33 |
|
---|
[287ea55] | 34 | validate:
|
---|
| 35 | xmllint --noout --nonet --xinclude --postvalid index.xml
|
---|
[00cc7ce] | 36 |
|
---|
[3e46693] | 37 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.