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

Diff of /trunk/doc/SConscript

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

revision 2402 by jfenwick, Wed Apr 29 06:02:21 2009 UTC revision 2405 by jfenwick, Wed Apr 29 23:57:38 2009 UTC
# Line 27  os.chdir(src_dir) Line 27  os.chdir(src_dir)
27  example_files = os.popen("find examples -name .svn -prune -o -type f -print").read().split(None)  example_files = os.popen("find examples -name .svn -prune -o -type f -print").read().split(None)
28  os.chdir(cur_dir)  os.chdir(cur_dir)
29    
30    print example_files
31    
32  tmp1 = env.Command("#/release/doc/escript_examples.zip", None,  tmp1 = env.Command("#/release/doc/escript_examples.zip", None,
33     "zip "+os.path.join(outputdir,"escript_examples.zip ") +" ".join(example_files),chdir=src_dir)  "zip "+os.path.join(outputdir,"escript_examples.zip ") +" ".join(example_files),chdir=src_dir)
34  env.Alias('examples_zipfile', tmp1)  env.Alias('examples_zipfile', tmp1)
35    
36  # Need to strip the unwanted doc/ from the front of the path  
37  env=Environment(TARFLAGS = "--transform 's,doc/examples,examples,' -c -z")  #Need to use explicit tar rather than the tar builder due to problems getting it not to put
38  if 'Tar' in dir(env): env.Tar('#release/doc/escript_examples.tar.gz', example_files)  #unwanted path components in the tar file
39  env.Alias('examples_tarfile', '#release/doc/escript_examples.tar.gz')  #--transform on tar is not supported on savanna
40    tmp2 = env.Command("#/release/doc/escript_examples.tar.gz", None, "tar -czf "+os.path.join(outputdir,"escript_examples.tar.gz ")+"  ".join(example_files), chdir=src_dir)
41    env.Alias('examples_tarfile',tmp2)
42    
43    #env=Environment(TARFLAGS = "-c -z",chdir=src_dir)
44    #if 'Tar' in dir(env): env.Tar('#/release/doc/escript_examples.tar.gz', example_files,chdir=src_dir)
45    #env.Alias('examples_tarfile', '#release/doc/escript_examples.tar.gz')
46    
47  local_env.SConscript(dirs = ['#/doc/user'], build_dir='#/build/$PLATFORM/doc/user', duplicate=1)  local_env.SConscript(dirs = ['#/doc/user'], build_dir='#/build/$PLATFORM/doc/user', duplicate=1)
48  local_env.SConscript(dirs = ['#/doc/epydoc'], build_dir='#/build/$PLATFORM/doc/epydoc', duplicate=1)  local_env.SConscript(dirs = ['#/doc/epydoc'], build_dir='#/build/$PLATFORM/doc/epydoc', duplicate=1)

Legend:
Removed from v.2402  
changed lines
  Added in v.2405

  ViewVC Help
Powered by ViewVC 1.1.26