~vcs-imports/escript-finley/trunk

« back to all changes in this revision

Viewing changes to doc/user/SConscript

  • Committer: jfenwick
  • Date: 2010-10-11 01:48:14 UTC
  • Revision ID: svn-v4:77569008-7704-0410-b7a0-a92fef0b09fd:trunk:3259
Merging dudley and scons updates from branches

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#
12
12
########################################################
13
13
 
14
 
 
15
14
import os
16
15
Import('*')
17
 
 
18
 
local_env = clone_env(env)
 
16
local_env = env.Clone()
19
17
 
20
18
latexmode='-interaction=nonstopmode'
21
19
 
22
20
tex_dir = local_env.Dir('.').srcnode().abspath
23
21
dir_cmd = "cd "+tex_dir+" && "
24
22
 
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('.') ]
27
25
 
28
 
# We would like any figures in .eps to be converted into .pdfs
29
 
 
 
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') ]
31
28
 
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
39
36
 
40
37
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
 
38
            [ latexcmd, \
 
39
              dir_cmd+"bibtex guide", \
 
40
              dir_cmd+"makeindex guide", \
 
41
              latexcmd, \
 
42
              latexcmd] \
47
43
)
48
44
 
49
45
tmp=local_env.InstallAs(target=env['prefix']+'/release/doc/user/guide.pdf', source=env['prefix']+'/doc/user/guide.pdf')
50
46
 
51
47
env.Alias('guide_pdf', tmp)
52
48
 
53
 
 
54
49
#env.Alias('guide_pdf', env['prefix']+'/release/doc/user/guide.pdf')
55
50
#env.Alias('guide_pdf', tmp)
56
51
 
57
 
 
58
52
#env.Command(env['prefix']+'/release/doc/user/guide.pdf',tex,
59
53
            #[ mytest(), "latex %s guide.tex"%latexmode,  \
60
54
              #"bibtex guide",                  \
65
59
            #chdir=tex_dir)
66
60
#env.Alias('guide_pdf', env['prefix']+'/release/doc/user/guide.pdf')
67
61
 
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
 
)
 
62
local_env.Command(env['prefix']+'/release/doc/user/html/index.htm', tex, \
 
63
                [dir_cmd+"latex2html -top_navigation \
 
64
                        -bottom_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 \
 
74
                        -noshort_extn \
 
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')
87
78