/[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 2386 by gross, Mon Apr 6 23:36:15 2009 UTC revision 2387 by jfenwick, Wed Apr 15 05:05:27 2009 UTC
# Line 20  local_env = clone_env(env) Line 20  local_env = clone_env(env)
20  latexmode='-interaction=nonstopmode'  latexmode='-interaction=nonstopmode'
21    
22  tex_dir = local_env.Dir('.').srcnode().abspath  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'] ] + \  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('.') ]       [ 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  # We would like any figures in .eps to be converted into .pdfs
28    
29  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']]  #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  latexcmd="pdflatex %s \\\\newcommand{\\\\RepVersion}{`svnversion`\\\\xspace}\\\\input{guide.tex}"%latexmode
38    
39  env.Command(env['prefix']+'/doc/user/guide.pdf',tex,  env.Command(env['prefix']+'/doc/user/guide.pdf',[tex, figtarget], \
             [ "epstopdf "+os.path.join('figures',name+".eps")+" -o "\  
           +os.path.join('figures',name+".pdf") for name in figs ]+ \  
40          [ latexcmd,  \          [ latexcmd,  \
41                "bibtex guide",                  \                "bibtex guide",                  \
42                "makeindex guide",               \                "makeindex guide",               \

Legend:
Removed from v.2386  
changed lines
  Added in v.2387

  ViewVC Help
Powered by ViewVC 1.1.26