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

Contents of /trunk/doc/user/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2923 - (show annotations)
Thu Feb 4 04:05:36 2010 UTC (9 years, 8 months ago) by jfenwick
File size: 3993 byte(s)
Bringing non-release specific things from stage3.1 r2922 back to trunk

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 dir_cmd = "cd "+tex_dir+" && "
24
25 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'] ] + \
26 [ env.File('figures'+os.path.sep+x) for x in os.listdir(tex_dir+os.path.sep+'figures') if not x.startswith('.') ]
27
28 # We would like any figures in .eps to be converted into .pdfs
29
30 #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') ]
31
32 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') ]
33
34 #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']]
35
36 figtarget=local_env.EpsToPDF(source=epsfigs,chdir=tex_dir)
37
38 latexcmd=dir_cmd+"pdflatex %s \\\\newcommand{\\\\RepVersion}{`svnversion`\\\\xspace}\\\\input{guide.tex}"%latexmode
39
40 local_env.Command(env['prefix']+'/doc/user/guide.pdf',[tex, figtarget], \
41 [ latexcmd, \
42 dir_cmd+"bibtex guide", \
43 dir_cmd+"makeindex guide", \
44 latexcmd, \
45 latexcmd], \
46 # chdir=tex_dir
47 )
48
49 tmp=local_env.InstallAs(target=env['prefix']+'/release/doc/user/guide.pdf', source=env['prefix']+'/doc/user/guide.pdf')
50
51 env.Alias('guide_pdf', tmp)
52
53
54 #env.Alias('guide_pdf', env['prefix']+'/release/doc/user/guide.pdf')
55 #env.Alias('guide_pdf', tmp)
56
57
58 #env.Command(env['prefix']+'/release/doc/user/guide.pdf',tex,
59 #[ mytest(), "latex %s guide.tex"%latexmode, \
60 #"bibtex guide", \
61 #"makeindex guide", \
62 #"latex %s guide"%latexmode, \
63 #"latex %s guide"%latexmode, \
64 #"dvipdf guide.dvi %s"%env['prefix']+'/release/doc/user/guide.pdf' ],
65 #chdir=tex_dir)
66 #env.Alias('guide_pdf', env['prefix']+'/release/doc/user/guide.pdf')
67
68
69 local_env.Command(env['prefix']+'/release/doc/user/html/index.htm',tex, \
70 [dir_cmd+"latex2html -top_navigation \
71 -bottom_navigation \
72 -index_in_navigation \
73 -contents_in_navigation \
74 -next_page_in_navigation \
75 -previous_page_in_navigation \
76 -title \"esys users guide\" \
77 -noshow_section_numbers \
78 -dir \"../../release/doc/user/html\" -mkdir \
79 -address \"esys@esscc.uq.edu.au\" \
80 -antialias_text -antialias -transparent \
81 -noshort_extn \
82 -up_url \"https://launchpad.net/escript-finley\", \
83 -up_title \"escript\" guide.tex"],
84 #chdir=tex_dir
85 )
86 env.Alias('guide_html', env['prefix']+'/release/doc/user/html/index.htm')
87

  ViewVC Help
Powered by ViewVC 1.1.26