/[ascend]/trunk/doc/SConscript
ViewVC logotype

Contents of /trunk/doc/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2315 - (show annotations) (download)
Mon Dec 13 06:55:14 2010 UTC (9 years, 8 months ago) by jpye
File size: 1120 byte(s)
Working on reinstating 'doxygen' support in build (needs testing).
Adding tests for Expr data type.
1 #!/usr/bin/python invoke_with_scons
2 Import('env')
3 import glob, os.path
4
5 # this sconscript will build the ASCEND user's manual and install it in the desired location
6
7 if env.get('WITH_DOC_BUILD'):
8
9 env.Command('book.tex','book.lyx'
10 ,"lyx --export latex $SOURCE"
11 )
12
13 epsfigs = glob.glob("*.eps")
14 pdffigs = []
15 for f in epsfigs:
16 st,ext = os.path.splitext(f)
17 pdffigs += env.Command(st+".pdf",f
18 ,"epstopdf --outfile=$TARGET $SOURCE"
19 )
20
21 ## @TODO use 'env.PDF()' instead
22
23 pdf = env.Command('book.pdf','book.tex'
24 ,"pdflatex book.tex"
25 ,chdir=1
26 )
27 env.Depends(pdf,pdffigs)
28
29 if env.get('WITH_LATEX2HTML'):
30 html = env.Command('html/index.html','book.tex'
31 ,"latex2html --show_section_numbers --html_version=4.0 -dir html $SOURCE.file"
32 ,chdir="doc"
33 )
34 env.Depends(html,epsfigs)
35 else:
36 pdf = "book.pdf"
37
38 #------------------------
39 # doxygen docs for libascend
40
41 env.SConscript('libascend/SConscript',['env'])
42
43 #------------------------
44 # install docs
45
46 if env.get('CAN_INSTALL') and env.get('WITH_DOC_INSTALL'):
47 env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_DOC")),pdf)
48
49
50 # vim: syntax=python:
51

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22