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

Diff of /trunk/doc/install/SConscript

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

revision 3258 by jfenwick, Thu Feb 4 04:05:36 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  tex_dir = local_env.Dir('.').srcnode().abspath  tex_dir = local_env.Dir('.').srcnode().abspath
20  dir_cmd = "cd "+tex_dir+" && "  dir_cmd = "cd "+tex_dir+" && "
21  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'] ] + \
22       [ 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('.') ]
23    
 #env.Command(env['prefix']+'/release/doc/install/install.pdf',tex,  
             #[ "latex %s install.tex"%latexmode,  \  
               #"makeindex install",               \  
               #"latex %s install"%latexmode,      \  
               #"latex %s install"%latexmode,      \  
               #"dvipdf install.dvi %s"%env['prefix']+'/release/doc/install/install.pdf' ],  
             #chdir=tex_dir)  
   
24  latexcmd=dir_cmd+"pdflatex %s \\\\newcommand{\\\\RepVersion}{`svnversion`\\\\xspace}\\\\input{install.tex}"%latexmode  latexcmd=dir_cmd+"pdflatex %s \\\\newcommand{\\\\RepVersion}{`svnversion`\\\\xspace}\\\\input{install.tex}"%latexmode
25    
26  local_env.Command(env['prefix']+'/doc/install/install.pdf',tex,  local_env.Command(env['prefix']+'/doc/install/install.pdf', tex,
27              [ latexcmd,  \              [ latexcmd, \
28                dir_cmd+"makeindex install",               \                dir_cmd+"makeindex install", \
29                latexcmd,      \                latexcmd, \
30                latexcmd],      \                latexcmd ] \
 #            chdir=tex_dir  
31  )  )
32    
33  tmp=local_env.InstallAs(target=env['prefix']+'/release/doc/install/install.pdf', source=env['prefix']+'/doc/install/install.pdf')  tmp=local_env.InstallAs(target=env['prefix']+'/release/doc/install/install.pdf', source=env['prefix']+'/doc/install/install.pdf')
34    
35  env.Alias('install_pdf', tmp)  env.Alias('install_pdf', tmp)
36    
   
   

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

  ViewVC Help
Powered by ViewVC 1.1.26