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