12
12
########################################################
18
local_env = clone_env(env)
16
local_env = env.Clone()
20
18
latexmode='-interaction=nonstopmode'
22
20
tex_dir = local_env.Dir('.').srcnode().abspath
23
21
dir_cmd = "cd "+tex_dir+" && "
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'] ] + \
23
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
24
[ env.File('figures'+os.path.sep+x) for x in os.listdir(tex_dir+os.path.sep+'figures') if not x.startswith('.') ]
28
# We would like any figures in .eps to be converted into .pdfs
26
# We would like any figures in .eps to be converted into .pdf
30
27
#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') ]
32
29
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') ]
38
35
latexcmd=dir_cmd+"pdflatex %s \\\\newcommand{\\\\RepVersion}{`svnversion`\\\\xspace}\\\\input{guide.tex}"%latexmode
40
37
local_env.Command(env['prefix']+'/doc/user/guide.pdf',[tex, figtarget], \
42
dir_cmd+"bibtex guide", \
43
dir_cmd+"makeindex guide", \
39
dir_cmd+"bibtex guide", \
40
dir_cmd+"makeindex guide", \
49
45
tmp=local_env.InstallAs(target=env['prefix']+'/release/doc/user/guide.pdf', source=env['prefix']+'/doc/user/guide.pdf')
51
47
env.Alias('guide_pdf', tmp)
54
49
#env.Alias('guide_pdf', env['prefix']+'/release/doc/user/guide.pdf')
55
50
#env.Alias('guide_pdf', tmp)
58
52
#env.Command(env['prefix']+'/release/doc/user/guide.pdf',tex,
59
53
#[ mytest(), "latex %s guide.tex"%latexmode, \
66
60
#env.Alias('guide_pdf', env['prefix']+'/release/doc/user/guide.pdf')
69
local_env.Command(env['prefix']+'/release/doc/user/html/index.htm',tex, \
70
[dir_cmd+"latex2html -top_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 \
82
-up_url \"https://launchpad.net/escript-finley\", \
83
-up_title \"escript\" guide.tex"],
62
local_env.Command(env['prefix']+'/release/doc/user/html/index.htm', tex, \
63
[dir_cmd+"latex2html -top_navigation \
65
-index_in_navigation \
66
-contents_in_navigation \
67
-next_page_in_navigation \
68
-previous_page_in_navigation \
69
-title \"esys users guide\" \
70
-noshow_section_numbers \
71
-dir \"../../release/doc/user/html\" -mkdir \
72
-address \"esys@esscc.uq.edu.au\" \
73
-antialias_text -antialias -transparent \
75
-up_url \"https://launchpad.net/escript-finley\", \
76
-up_title \"escript\" guide.tex"])
86
77
env.Alias('guide_html', env['prefix']+'/release/doc/user/html/index.htm')