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

Contents of /trunk/doc/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 884 - (show annotations) (download)
Tue Oct 10 14:56:31 2006 UTC (13 years, 4 months ago) by johnpye
File size: 844 byte(s)
Trying to fix installation of the ASCEND manual, still not quite right :-(
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 pdf = env.Command('book.pdf','book.tex'
19 ,"pdflatex book.tex"
20 ,chdir=1
21 )
22 env.Depends(pdf,pdffigs)
23
24 html = env.Command('html/index.html','book.tex'
25 ,"latex2html --show_section_numbers --html_version=4.0 -dir html $SOURCE.file"
26 ,chdir="doc"
27 )
28 env.Depends(html,epsfigs)
29
30 #------------------------
31 # install docs
32
33 if env.get('CAN_INSTALL'):
34 print "INSTALLING DOCS IN",env['INSTALL_ROOT']+env['INSTALL_DOC']
35 env.Install(env.subst(env['INSTALL_ROOT']+env['INSTALL_DOC']),pdf)
36

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