711c20f328ae57b2aebd5cd7388d6c4f25772d42
[working/Evergreen.git] / tools / docbookConvert.sh
1 #/bin/bash
2
3 #generate draft html
4  xsltproc --xinclude --stringparam base.dir /openils/var/web/evergreen_documentation/1.6/draft/html/ ~/Evergreen-DocBook/stylesheets/evergreen_docbook_files/evergreen_xhtml.xsl ~/Evergreen-DocBook/1.6/root.xml
5
6
7 #Generate PDF via FO
8  xsltproc --xinclude  --output ~/Evergreen-DocBook/1.6/pdf/temp.fo ~/Evergreen-DocBook/stylesheets/evergreen_docbook_files/evergreen_fo.xsl ~/Evergreen-DocBook/1.6/root.xml
9
10 # must run fop from same directory as root.xml
11 cd ~/Evergreen-DocBook/1.6/
12
13  ~/doctools/fop/fop -fo pdf/temp.fo -pdf /openils/var/web/evergreen_documentation/1.6/draft/pdf/Evergreen_Documentation.pdf 
14
15 # remove temporary .fo file
16 rm pdf/temp.fo