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

Contents of /trunk/doc/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1443 - (show annotations) (download)
Sat May 26 09:00:53 2007 UTC (15 years, 2 months ago) by jpye
File size: 980 byte(s)
Fixed problems with installation of documentation on FC6
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 if env.get('WITH_DOC_BUILD'):
7
8 env.Command('book.tex','book.lyx'
9 ,"lyx --export latex $SOURCE"
10 )
11
12 epsfigs = glob.glob("*.eps")
13 pdffigs = []
14 for f in epsfigs:
15 st,ext = os.path.splitext(f)
16 pdffigs += env.Command(st+".pdf",f
17 ,"epstopdf --outfile=$TARGET $SOURCE"
18 )
19
20 ## @TODO use 'env.PDF()' instead
21
22 pdf = env.Command('book.pdf','book.tex'
23 ,"pdflatex book.tex"
24 ,chdir=1
25 )
26 env.Depends(pdf,pdffigs)
27
28 if env.get('WITH_LATEX2HTML'):
29 html = env.Command('html/index.html','book.tex'
30 ,"latex2html --show_section_numbers --html_version=4.0 -dir html $SOURCE.file"
31 ,chdir="doc"
32 )
33 env.Depends(html,epsfigs)
34 else:
35 pdf = "book.pdf"
36
37 #------------------------
38 # install docs
39
40 if env.get('CAN_INSTALL') and env.get('WITH_DOC_INSTALL'):
41 env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_DOC")),pdf)
42
43
44 # vim: syntax=python:
45

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