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

Contents of /trunk/doc/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1438 - (show annotations) (download)
Thu May 24 11:33:04 2007 UTC (12 years, 10 months ago) by jpye
File size: 849 byte(s)
Added some comments in ascend.spec referring to as-yet-unresolved dependencies for documentation generation.
Added to doc/SConscript 'if' clause to turn off doc installation by default. Should allow 'scons install' to
occur without triggering documentation build.
1 Import('env')
2 import glob, os.path
3
4 # this sconscript will build the ASCEND user's manual and install it in the desired location
5
6 env.Command('book.tex','book.lyx'
7 ,"lyx --export latex $SOURCE"
8 )
9
10 epsfigs = glob.glob("*.eps")
11 pdffigs = []
12 for f in epsfigs:
13 st,ext = os.path.splitext(f)
14 pdffigs += env.Command(st+".pdf",f
15 ,"epstopdf --outfile=$TARGET $SOURCE"
16 )
17
18 ## @TODO use 'env.PDF()' instead
19
20 pdf = env.Command('book.pdf','book.tex'
21 ,"pdflatex book.tex"
22 ,chdir=1
23 )
24 env.Depends(pdf,pdffigs)
25
26 html = env.Command('html/index.html','book.tex'
27 ,"latex2html --show_section_numbers --html_version=4.0 -dir html $SOURCE.file"
28 ,chdir="doc"
29 )
30 env.Depends(html,epsfigs)
31
32 #------------------------
33 # install docs
34
35 if env.get('CAN_INSTALL') and env.get('WITH_LOCAL_HELP'):
36 env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_ASCDATA")),[pdf])
37
38

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