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

Diff of /trunk/doc/user/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1811 by ksteube, Thu Sep 25 23:11:13 2008 UTC revision 2336 by jfenwick, Thu Mar 26 06:09:20 2009 UTC
# Line 23  tex_dir = local_env.Dir('.').srcnode().a Line 23  tex_dir = local_env.Dir('.').srcnode().a
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'] ] + \  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'] ] + \
24       [ env.File('figures'+os.path.sep+x) for x in os.listdir(tex_dir+os.path.sep+'figures') if not x.startswith('.') ]       [ env.File('figures'+os.path.sep+x) for x in os.listdir(tex_dir+os.path.sep+'figures') if not x.startswith('.') ]
25    
26  env.Command(env['prefix']+'/release/doc/user/guide.pdf',tex,  # We would like any figures in .eps to be converted into .pdfs
27              [ "latex %s guide.tex"%latexmode,  \  
28    figs=[ os.path.splitext(x)[0] for x in os.listdir(tex_dir+os.path.sep+'figures') if not x.startswith('.') and os.path.splitext(x)[1] in ['.eps']]
29    
30    
31    env.Command('guide.pdf',tex,
32                [ "epstopdf "+os.path.join('figures',name+".eps")+" -o "\
33              +os.path.join('figures',name+".pdf") for name in figs ]+ \
34            [ "pdflatex %s guide.tex"%latexmode,  \
35                "bibtex guide",                  \                "bibtex guide",                  \
36                "makeindex guide",               \                "makeindex guide",               \
37                "latex %s guide"%latexmode,      \                "pdflatex %s guide"%latexmode,      \
38                "latex %s guide"%latexmode,      \                "pdflatex %s guide"%latexmode],      \
               "dvipdf guide.dvi %s"%env['prefix']+'/release/doc/user/guide.pdf' ],  
39              chdir=tex_dir)              chdir=tex_dir)
40  env.Alias('guide_pdf', env['prefix']+'/release/doc/user/guide.pdf')  
41    tmp=local_env.InstallAs(target=env['prefix']+'/release/doc/user/guide.pdf', source='guide.pdf')
42    
43    env.Alias('guide_pdf', tmp)
44    
45    
46    #env.Alias('guide_pdf', env['prefix']+'/release/doc/user/guide.pdf')
47    #env.Alias('guide_pdf', tmp)
48    
49    
50    #env.Command(env['prefix']+'/release/doc/user/guide.pdf',tex,
51                #[ mytest(), "latex %s guide.tex"%latexmode,  \
52                  #"bibtex guide",                  \
53                  #"makeindex guide",               \
54                  #"latex %s guide"%latexmode,      \
55                  #"latex %s guide"%latexmode,      \
56                  #"dvipdf guide.dvi %s"%env['prefix']+'/release/doc/user/guide.pdf' ],
57                #chdir=tex_dir)
58    #env.Alias('guide_pdf', env['prefix']+'/release/doc/user/guide.pdf')
59    
60    
61  env.Command(env['prefix']+'/release/doc/user/html/index.htm',tex,                 \  env.Command(env['prefix']+'/release/doc/user/html/index.htm',tex,                 \

Legend:
Removed from v.1811  
changed lines
  Added in v.2336

  ViewVC Help
Powered by ViewVC 1.1.26