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

Diff of /trunk/doc/cookbook/SConscript

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

revision 3258 by jfenwick, Wed Jul 21 04:09:58 2010 UTC revision 3259 by jfenwick, Mon Oct 11 01:48:14 2010 UTC
# Line 11  Line 11 
11  #  #
12  ########################################################  ########################################################
13    
   
14  import os  import os
15  Import('*')  Import('*')
16    local_env = env.Clone()
 local_env = clone_env(env)  
17    
18  latexmode='-interaction=nonstopmode'  latexmode='-interaction=nonstopmode'
19    
# Line 24  dir_cmd = "cd "+tex_dir+" && " Line 22  dir_cmd = "cd "+tex_dir+" && "
22  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'] ] + \
23       [ 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('.') ]
24    
   
25  latexcmd=dir_cmd+"pdflatex %s \\\\newcommand{\\\\RepVersion}{`svnversion`\\\\xspace}\\\\input{cookbook.tex}"%latexmode  latexcmd=dir_cmd+"pdflatex %s \\\\newcommand{\\\\RepVersion}{`svnversion`\\\\xspace}\\\\input{cookbook.tex}"%latexmode
26    
27  local_env.Command(env['prefix']+'/doc/cookbook/cookbook.pdf',[tex], \  local_env.Command(env['prefix']+'/doc/cookbook/cookbook.pdf',[tex], \
28          [ latexcmd,  \              [ latexcmd, \
29  #              "bibtex cookbook",                  \  #              "bibtex cookbook", \
30                dir_cmd+"makeindex cookbook",               \                dir_cmd+"makeindex cookbook", \
31                latexcmd,      \                latexcmd, \
32                latexcmd],      \                latexcmd ] \
 #            chdir=tex_dir  
33  )  )
34    
35  tmp=local_env.InstallAs(target=env['prefix']+'/release/doc/cookbook/cookbook.pdf', source=env['prefix']+'/doc/cookbook/cookbook.pdf')  tmp=local_env.InstallAs(target=env['prefix']+'/release/doc/cookbook/cookbook.pdf', source=env['prefix']+'/doc/cookbook/cookbook.pdf')
36    
37  env.Alias('cookbook_pdf', tmp)  env.Alias('cookbook_pdf', tmp)
38    
   
   

Legend:
Removed from v.3258  
changed lines
  Added in v.3259

  ViewVC Help
Powered by ViewVC 1.1.26