/[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 2922 by jfenwick, Thu Jan 28 02:03:15 2010 UTC revision 2923 by jfenwick, Thu Feb 4 04:05:36 2010 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    dir_cmd = "cd "+tex_dir+" && "
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    
28  latexcmd="pdflatex %s \\\\newcommand{\\\\RepVersion}{`svnversion`\\\\xspace}\\\\input{cookbook.tex}"%latexmode  latexcmd=dir_cmd+"pdflatex %s \\\\newcommand{\\\\RepVersion}{`svnversion`\\\\xspace}\\\\input{cookbook.tex}"%latexmode
29    
30  env.Command(env['prefix']+'/doc/cookbook/cookbook.pdf',[tex], \  local_env.Command(env['prefix']+'/doc/cookbook/cookbook.pdf',[tex], \
31          [ latexcmd,  \          [ latexcmd,  \
32  #              "bibtex cookbook",                  \  #              "bibtex cookbook",                  \
33                "makeindex cookbook",               \                dir_cmd+"makeindex cookbook",               \
34                latexcmd,      \                latexcmd,      \
35                latexcmd],      \                latexcmd],      \
36              chdir=tex_dir)  #            chdir=tex_dir
37    )
38    
39  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')
40    

Legend:
Removed from v.2922  
changed lines
  Added in v.2923

  ViewVC Help
Powered by ViewVC 1.1.26