/[escript]/trunk/doc/user/SConscript
ViewVC logotype

Annotation of /trunk/doc/user/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2548 - (hide annotations)
Mon Jul 20 06:20:06 2009 UTC (10 years, 7 months ago) by jfenwick
File size: 3907 byte(s)
Updating copyright notices
1 ksteube 1811
2     ########################################################
3 gross 708 #
4 jfenwick 2548 # Copyright (c) 2003-2009 by University of Queensland
5 ksteube 1811 # Earth Systems Science Computational Center (ESSCC)
6     # http://www.uq.edu.au/esscc
7 gross 708 #
8 ksteube 1811 # Primary Business: Queensland, Australia
9     # Licensed under the Open Software License version 3.0
10     # http://www.opensource.org/licenses/osl-3.0.php
11 ksteube 1705 #
12 ksteube 1811 ########################################################
13 ksteube 1705
14 ksteube 1811
15 gross 708 import os
16     Import('*')
17    
18 ksteube 1705 local_env = clone_env(env)
19    
20     latexmode='-interaction=nonstopmode'
21    
22 gross 708 tex_dir = local_env.Dir('.').srcnode().abspath
23 jfenwick 2387
24 gross 708 tex= [ env.File(x) for x in os.listdir(tex_dir) if not x.startswith('.') and not os.path.isdir(tex_dir+os.path.sep+x) and os.path.splitext(x)[1] in ['.tex', '.bib', '.sty', '.cfg', '.cls'] ] + \
25     [ env.File('figures'+os.path.sep+x) for x in os.listdir(tex_dir+os.path.sep+'figures') if not x.startswith('.') ]
26    
27 jfenwick 2336 # We would like any figures in .eps to be converted into .pdfs
28    
29 jfenwick 2387 #epsfigs=[ env.File('figures'+os.path.sep+x) for x in os.listdir(tex_dir+os.path.sep+'figures') if not x.startswith('.') and x.endswith('.eps') ]
30 jfenwick 2336
31 jfenwick 2387 epsfigs=[ os.path.join(tex_dir,'figures',x) for x in os.listdir(tex_dir+os.path.sep+'figures') if not x.startswith('.') and x.endswith('.eps') ]
32 jfenwick 2336
33 jfenwick 2387 #figs=[ os.path.join('figures',os.path.splitext(x)[0]+'.pdf') for x in os.listdir(tex_dir+os.path.sep+'figures') if not x.startswith('.') and os.path.splitext(x)[1] in ['.eps']]
34    
35     figtarget=env.EpsToPDF(source=epsfigs,chdir=tex_dir)
36    
37 jfenwick 2338 latexcmd="pdflatex %s \\\\newcommand{\\\\RepVersion}{`svnversion`\\\\xspace}\\\\input{guide.tex}"%latexmode
38    
39 jfenwick 2387 env.Command(env['prefix']+'/doc/user/guide.pdf',[tex, figtarget], \
40 jfenwick 2338 [ latexcmd, \
41 gross 708 "bibtex guide", \
42     "makeindex guide", \
43 jfenwick 2338 latexcmd, \
44     latexcmd], \
45 gross 708 chdir=tex_dir)
46    
47 jfenwick 2339 tmp=local_env.InstallAs(target=env['prefix']+'/release/doc/user/guide.pdf', source=env['prefix']+'/doc/user/guide.pdf')
48 gross 708
49 jfenwick 2336 env.Alias('guide_pdf', tmp)
50    
51    
52     #env.Alias('guide_pdf', env['prefix']+'/release/doc/user/guide.pdf')
53     #env.Alias('guide_pdf', tmp)
54    
55    
56     #env.Command(env['prefix']+'/release/doc/user/guide.pdf',tex,
57     #[ mytest(), "latex %s guide.tex"%latexmode, \
58     #"bibtex guide", \
59     #"makeindex guide", \
60     #"latex %s guide"%latexmode, \
61     #"latex %s guide"%latexmode, \
62     #"dvipdf guide.dvi %s"%env['prefix']+'/release/doc/user/guide.pdf' ],
63     #chdir=tex_dir)
64     #env.Alias('guide_pdf', env['prefix']+'/release/doc/user/guide.pdf')
65    
66    
67 ksteube 1705 env.Command(env['prefix']+'/release/doc/user/html/index.htm',tex, \
68     ["latex2html -top_navigation \
69 gross 708 -bottom_navigation \
70     -index_in_navigation \
71     -contents_in_navigation \
72     -next_page_in_navigation \
73     -previous_page_in_navigation \
74 ksteube 1705 -title \"esys users guide\" \
75 gross 708 -noshow_section_numbers \
76 ksteube 1705 -dir \"../../release/doc/user/html\" -mkdir \
77 gross 708 -address \"esys@esscc.uq.edu.au\" \
78     -antialias_text -antialias -transparent \
79     -noshort_extn \
80 gross 2372 -up_url \"https://launchpad.net/escript-finley\", \
81 ksteube 1705 -up_title \"escript\" guide.tex"], chdir=tex_dir)
82     env.Alias('guide_html', env['prefix']+'/release/doc/user/html/index.htm')
83    

  ViewVC Help
Powered by ViewVC 1.1.26