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

Diff of /trunk/doc/SConscript

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

revision 3259 by jfenwick, Mon Oct 11 01:48:14 2010 UTC revision 3277 by caltinay, Fri Oct 15 01:06:24 2010 UTC
# Line 120  ex2=[os.path.join("examples", str(x)) fo Line 120  ex2=[os.path.join("examples", str(x)) fo
120    
121  local_env = env.Clone()  local_env = env.Clone()
122  src_dir = local_env.Dir('.').srcnode().abspath  src_dir = local_env.Dir('.').srcnode().abspath
123  release_dir=local_env.Dir('#/release/doc/').srcnode().abspath  release_dir=os.path.join(env['prefix'],'release','doc')
124    Export('release_dir')
125    
126  dir_cmd = "cd "+src_dir+" && "  dir_cmd = "cd "+src_dir+" && "
127    
128  tmp1 = local_env.Command("#/release/doc/escript_examples.zip", None, dir_cmd+"zip "+os.path.join(release_dir,"escript_examples.zip ") +" ".join(ex2))  # Need to use explicit tar/zip rather than the builder due to problems getting
129  env.Alias('examples_zipfile', tmp1)  # it not to put unwanted path components in the archive file
   
 # Need to use explicit tar rather than the tar builder due to problems getting  
 # it not to put unwanted path components in the tar file  
130  # --transform on tar is not supported on savanna  # --transform on tar is not supported on savanna
131  tmp2 = local_env.Command("#/release/doc/escript_examples.tar.gz", None, dir_cmd+"tar -czf "+os.path.join(release_dir,"escript_examples.tar.gz ")+"  ".join(ex2))  zip_path=os.path.join(release_dir, 'escript_examples.zip')
132  env.Alias('examples_tarfile',tmp2)  zip = local_env.Command(zip_path, None, dir_cmd+"zip "+zip_path+" "+" ".join(ex2))
133    env.Alias('examples_zipfile', zip)
134    
135    tar_path=os.path.join(release_dir, 'escript_examples.tar.gz')
136    tar = local_env.Command(tar_path, None, dir_cmd+"tar -czf "+tar_path+" "+" ".join(ex2))
137    env.Alias('examples_tarfile', tar)
138    
139  #env=Environment(TARFLAGS = "-c -z",chdir=src_dir)  #env=Environment(TARFLAGS = "-c -z",chdir=src_dir)
140  #if 'Tar' in dir(env): env.Tar('#/release/doc/escript_examples.tar.gz', example_files,chdir=src_dir)  #if 'Tar' in dir(env):
141  #env.Alias('examples_tarfile', '#release/doc/escript_examples.tar.gz')  # tar=env.Tar(tar_path, example_files, chdir=src_dir)
142    # env.Alias('examples_tarfile', tar)
143    
144  local_env.SConscript(dirs = ['#/doc/cookbook'], variant_dir='#/build/$PLATFORM/doc/cookbook', duplicate=1)  local_env.SConscript(dirs = ['#/doc/cookbook'], variant_dir='#/build/$PLATFORM/doc/cookbook', duplicate=1)
145  local_env.SConscript(dirs = ['#/doc/user'], variant_dir='#/build/$PLATFORM/doc/user', duplicate=1)  local_env.SConscript(dirs = ['#/doc/user'], variant_dir='#/build/$PLATFORM/doc/user', duplicate=1)

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

  ViewVC Help
Powered by ViewVC 1.1.26