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

Diff of /trunk/doc/SConscript

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

revision 2287 by jfenwick, Tue Feb 24 04:29:17 2009 UTC revision 2402 by jfenwick, Wed Apr 29 06:02:21 2009 UTC
# Line 18  Import('*') Line 18  Import('*')
18  local_env = clone_env(env)  local_env = clone_env(env)
19    
20  # get all the file names in doc/examples:  # get all the file names in doc/examples:
21  src_dir = local_env.Dir('examples').srcnode().abspath  #src_dir = local_env.Dir('examples').srcnode().abspath
22  example_files = os.popen("find " + src_dir + " -name .svn -prune -o -type f -print").read().split(None)  src_dir = local_env.Dir('.').srcnode().abspath
23    cur_dir = os.path.abspath(os.curdir)
24    outputdir=local_env.Dir('#/release/doc/').srcnode().abspath
25    
26  tmp1 = env.Command("release/doc/escript_examples.zip", None, "zip release/doc/escript_examples.zip "+" ".join(example_files))  os.chdir(src_dir)
27    example_files = os.popen("find examples -name .svn -prune -o -type f -print").read().split(None)
28    os.chdir(cur_dir)
29    
30    tmp1 = env.Command("#/release/doc/escript_examples.zip", None,
31       "zip "+os.path.join(outputdir,"escript_examples.zip ") +" ".join(example_files),chdir=src_dir)
32  env.Alias('examples_zipfile', tmp1)  env.Alias('examples_zipfile', tmp1)
33    
34  env=Environment(TARFLAGS = '-c -z')  # Need to strip the unwanted doc/ from the front of the path
35    env=Environment(TARFLAGS = "--transform 's,doc/examples,examples,' -c -z")
36  if 'Tar' in dir(env): env.Tar('#release/doc/escript_examples.tar.gz', example_files)  if 'Tar' in dir(env): env.Tar('#release/doc/escript_examples.tar.gz', example_files)
37  env.Alias('examples_tarfile', '#release/doc/escript_examples.tar.gz')  env.Alias('examples_tarfile', '#release/doc/escript_examples.tar.gz')
38    
# Line 33  local_env.SConscript(dirs = ['#/doc/epyd Line 41  local_env.SConscript(dirs = ['#/doc/epyd
41  local_env.SConscript(dirs = ['#/doc/doxygen'], build_dir='#/build/$PLATFORM/doc/doxygen', duplicate=1)  local_env.SConscript(dirs = ['#/doc/doxygen'], build_dir='#/build/$PLATFORM/doc/doxygen', duplicate=1)
42  local_env.SConscript(dirs = ['#/doc/install'], build_dir='#/build/$PLATFORM/doc/install', duplicate=1)  local_env.SConscript(dirs = ['#/doc/install'], build_dir='#/build/$PLATFORM/doc/install', duplicate=1)
43    
44    

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

  ViewVC Help
Powered by ViewVC 1.1.26