/[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 3303 by caltinay, Thu Oct 21 00:37:42 2010 UTC revision 3304 by caltinay, Mon Oct 25 04:43:48 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  if 'PDF' in dir(local_env):  # Target that converts eps figures to pdf and adds png files
22      # Convert eps figures to pdf  figures=local_env.EpsToPDF(source=fig_src) + Glob('figures/*.png')
     figures=local_env.EpsToPDF(source=fig_src) + Glob('figures/*.png')  
23    
24    if 'PDF' in dir(local_env):
25      if local_env['verbose']:      if local_env['verbose']:
26          interaction='-interaction=nonstopmode'          interaction='-interaction=nonstopmode'
27      else:      else:
# Line 39  else: Line 39  else:
39      env.Alias('guide_pdf', '', 'echo "PDF output not supported!"')      env.Alias('guide_pdf', '', 'echo "PDF output not supported!"')
40      env.AlwaysBuild('guide_pdf')      env.AlwaysBuild('guide_pdf')
41    
42  html_dir=os.path.join(release_dir,'user','html')  # html version
43  html=local_env.Command(Dir(html_dir), fig_src+tex_src,  #html_dir=os.path.join(release_dir,'user','html')
44                  ["cd %s && latex2html -top_navigation \  #html=local_env.Command(Dir(html_dir), tex_src+fig_src,
45                   -bottom_navigation \  #                [Delete(Dir('html')),
46                   -index_in_navigation \  #                 Copy(Dir('html'), '${SOURCE.srcdir}'),
47                   -contents_in_navigation \  #                 Delete(Dir('html/figures')),
48                   -next_page_in_navigation \  #                 Copy(Dir('html/figures'), Dir('figures')),
49                   -previous_page_in_navigation \  #                 #Delete(html_dir),
50                   -title \"esys users guide\" \  #                 Mkdir(html_dir),
51                   -noshow_section_numbers \  #                 "cd %s && latex2html -top_navigation \
52                   -dir %s -mkdir \  #                 -bottom_navigation \
53                   -address \"esys@esscc.uq.edu.au\" \  #                 -index_in_navigation \
54                   -antialias_text -antialias -transparent \  #                 -contents_in_navigation \
55                   -noshort_extn \  #                 -next_page_in_navigation \
56                   -up_url \"https://launchpad.net/escript-finley\" \  #                 -previous_page_in_navigation \
57                   -up_title \"escript\" guide.tex"%(Dir('.').abspath,html_dir)])  #                 -title \"esys users guide\" \
58    #                 -noshow_section_numbers \
59  env.Alias('guide_html', html)  #                 -dir %s -mkdir \
60  env.AlwaysBuild(Dir(html_dir))  #                 -address \"esys@esscc.uq.edu.au\" \
61    #                 -antialias_text -antialias -transparent \
62    #                 -noshort_extn \
63    #                 -up_url \"https://launchpad.net/escript-finley\" \
64    #                 -up_title \"escript\" guide.tex"%(Dir('html').abspath,html_dir)])
65    #env.Alias('guide_html', [figures,html])
66    #env.AlwaysBuild(Dir(html_dir))
67    

Legend:
Removed from v.3303  
changed lines
  Added in v.3304

  ViewVC Help
Powered by ViewVC 1.1.26