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

Contents of /trunk/doc/user/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2881 - (show annotations)
Thu Jan 28 02:03:15 2010 UTC (9 years, 9 months ago) by jfenwick
File size: 3907 byte(s)
Don't panic.
Updating copyright stamps

1
2 ########################################################
3 #
4 # Copyright (c) 2003-2010 by University of Queensland
5 # Earth Systems Science Computational Center (ESSCC)
6 # http://www.uq.edu.au/esscc
7 #
8 # 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 #
12 ########################################################
13
14
15 import os
16 Import('*')
17
18 local_env = clone_env(env)
19
20 latexmode='-interaction=nonstopmode'
21
22 tex_dir = local_env.Dir('.').srcnode().abspath
23
24 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 # We would like any figures in .eps to be converted into .pdfs
28
29 #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
31 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
33 #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 latexcmd="pdflatex %s \\\\newcommand{\\\\RepVersion}{`svnversion`\\\\xspace}\\\\input{guide.tex}"%latexmode
38
39 env.Command(env['prefix']+'/doc/user/guide.pdf',[tex, figtarget], \
40 [ latexcmd, \
41 "bibtex guide", \
42 "makeindex guide", \
43 latexcmd, \
44 latexcmd], \
45 chdir=tex_dir)
46
47 tmp=local_env.InstallAs(target=env['prefix']+'/release/doc/user/guide.pdf', source=env['prefix']+'/doc/user/guide.pdf')
48
49 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 env.Command(env['prefix']+'/release/doc/user/html/index.htm',tex, \
68 ["latex2html -top_navigation \
69 -bottom_navigation \
70 -index_in_navigation \
71 -contents_in_navigation \
72 -next_page_in_navigation \
73 -previous_page_in_navigation \
74 -title \"esys users guide\" \
75 -noshow_section_numbers \
76 -dir \"../../release/doc/user/html\" -mkdir \
77 -address \"esys@esscc.uq.edu.au\" \
78 -antialias_text -antialias -transparent \
79 -noshort_extn \
80 -up_url \"https://launchpad.net/escript-finley\", \
81 -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