/[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 3382 by jfenwick, Fri Nov 5 03:20:19 2010 UTC revision 3383 by caltinay, Thu Nov 25 02:17:51 2010 UTC
# Line 15  import os Line 15  import os
15  Import('*')  Import('*')
16  local_env = env.Clone(tools=['pdflatex'])  local_env = env.Clone(tools=['pdflatex'])
17    
18  tex_src = Glob('*.tex')+Glob('*.bib')+Glob('*.sty')+Glob('*.cfg')+Glob('*.cls')  tex_src = Glob('*.tex')+Glob('*.bib')+Glob('*.cls')
19  fig_src = Glob('figures/*.png')  fig_src = Glob('figures/*.png')
20    
21  if 'PDF' in dir(local_env):  if 'PDF' in dir(local_env):
# Line 29  if 'PDF' in dir(local_env): Line 29  if 'PDF' in dir(local_env):
29      pdf=local_env.PDF(target='cookbook.pdf', source='cookbook.tex')      pdf=local_env.PDF(target='cookbook.pdf', source='cookbook.tex')
30      Depends(pdf, fig_src+tex_src)      Depends(pdf, fig_src+tex_src)
31    
32      pdf_inst=local_env.InstallAs(target=env['prefix']+'/release/doc/cookbook/cookbook.pdf', source='cookbook.pdf')      pdf_path=os.path.join(release_dir, 'cookbook', 'cookbook.pdf')
33        pdf_inst=local_env.InstallAs(target=pdf_path, source=pdf)
34      env.Alias('cookbook_pdf', pdf_inst)      env.Alias('cookbook_pdf', pdf_inst)
35  else:  else:
36      env.Alias('cookbook_pdf', '', 'echo "PDF output not supported!"')      env.Alias('cookbook_pdf', '', 'echo "PDF output not supported!"')

Legend:
Removed from v.3382  
changed lines
  Added in v.3383

  ViewVC Help
Powered by ViewVC 1.1.26