/[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 3276 by caltinay, Thu Oct 14 05:44:08 2010 UTC revision 3277 by caltinay, Fri Oct 15 01:06:24 2010 UTC
# Line 18  local_env = env.Clone(tools=['pdflatex'] Line 18  local_env = env.Clone(tools=['pdflatex']
18  tex_src = Glob('*.tex')+Glob('*.bib')+Glob('*.sty')+Glob('*.cfg')+Glob('*.cls')  tex_src = Glob('*.tex')+Glob('*.bib')+Glob('*.sty')+Glob('*.cfg')+Glob('*.cls')
19  fig_src = Glob('figures/*.eps')  fig_src = Glob('figures/*.eps')
20    
21  # Convert eps figures to pdf  if 'PDF' in dir(local_env):
22  figures=local_env.EpsToPDF(source=fig_src)      # Convert eps figures to pdf
23        figures=local_env.EpsToPDF(source=fig_src)
24  if local_env['verbose']:  
25      interaction='-interaction=nonstopmode'      if local_env['verbose']:
26            interaction='-interaction=nonstopmode'
27        else:
28            interaction='-interaction=batchmode'
29    
30        # Define command to include SVN revision
31        local_env.Append(PDFLATEXFLAGS=[interaction,'\\\\newcommand{\\\\RepVersion}{%s\\\\xspace}\\\\input{guide.tex}'%(local_env['svn_revision'])])
32        pdf=local_env.PDF(target='guide.pdf', source='guide.tex')
33        Depends(pdf, figures+tex_src)
34    
35        pdf_path=os.path.join(release_dir, 'user', 'guide.pdf')
36        pdf_inst=local_env.InstallAs(target=pdf_path, source=pdf)
37        env.Alias('guide_pdf', pdf_inst)
38  else:  else:
39      interaction='-interaction=batchmode'      env.Alias('guide_pdf', '', 'echo "PDF output not supported!"')
40        env.AlwaysBuild('guide_pdf')
 # Define command to include SVN revision  
 local_env.Append(PDFLATEXFLAGS=[interaction,'\\\\newcommand{\\\\RepVersion}{%s\\\\xspace}\\\\input{guide.tex}'%(local_env['svn_revision'])])  
 pdf=local_env.PDF(target='guide.pdf', source='guide.tex')  
 Depends(pdf, figures+tex_src)  
   
 pdf_inst=local_env.InstallAs(target=env['prefix']+'/release/doc/user/guide.pdf', source=pdf)  
   
 env.Alias('guide_pdf', pdf_inst)  
   
 html_dir=os.path.join(env['prefix'],'release','doc','user','html')  
41    
42    html_dir=os.path.join(release_dir,'user','html')
43  html=local_env.Command(Dir(html_dir), Dir('.').abspath,  html=local_env.Command(Dir(html_dir), Dir('.').abspath,
44                  ["cd %s && latex2html -top_navigation \                  ["cd %s && latex2html -top_navigation \
45                   -bottom_navigation \                   -bottom_navigation \

Legend:
Removed from v.3276  
changed lines
  Added in v.3277

  ViewVC Help
Powered by ViewVC 1.1.26