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

Diff of /trunk/doc/SConscript

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

revision 2502 by gross, Tue Jun 30 05:49:22 2009 UTC revision 2503 by jfenwick, Wed Jul 1 05:05:08 2009 UTC
# Line 125  example_files_no_mpi = [ Line 125  example_files_no_mpi = [
125    
126  example_files= example_files_allow_mpi + example_files_no_mpi  example_files= example_files_allow_mpi + example_files_no_mpi
127    
128    
129    ex2=[ os.path.join("examples",str(x)) for x in example_files]
130    
131  #==========================================================================================  #==========================================================================================
132    
133  local_env = clone_env(env)  local_env = clone_env(env)
# Line 132  src_dir = local_env.Dir('.').srcnode().a Line 135  src_dir = local_env.Dir('.').srcnode().a
135  release_dir=local_env.Dir('#/release/doc/').srcnode().abspath  release_dir=local_env.Dir('#/release/doc/').srcnode().abspath
136    
137  tmp1 = env.Command("#/release/doc/escript_examples.zip", None,  tmp1 = env.Command("#/release/doc/escript_examples.zip", None,
138  "zip "+os.path.join(release_dir,"escript_examples.zip ") +" ".join(example_files),chdir=src_dir)  "zip "+os.path.join(release_dir,"escript_examples.zip ") +" ".join(ex2),chdir=src_dir)
139  env.Alias('examples_zipfile', tmp1)  env.Alias('examples_zipfile', tmp1)
140    
141    
142  #Need to use explicit tar rather than the tar builder due to problems getting it not to put  #Need to use explicit tar rather than the tar builder due to problems getting it not to put
143  #unwanted path components in the tar file  #unwanted path components in the tar file
144  #--transform on tar is not supported on savanna  #--transform on tar is not supported on savanna
145  tmp2 = env.Command("#/release/doc/escript_examples.tar.gz", None, "tar -czf "+os.path.join(release_dir,"escript_examples.tar.gz ")+"  ".join(example_files), chdir=src_dir)  tmp2 = env.Command("#/release/doc/escript_examples.tar.gz", None, "tar -czf "+os.path.join(release_dir,"escript_examples.tar.gz ")+"  ".join(ex2), chdir=src_dir)
146  env.Alias('examples_tarfile',tmp2)  env.Alias('examples_tarfile',tmp2)
147    
148  #env=Environment(TARFLAGS = "-c -z",chdir=src_dir)  #env=Environment(TARFLAGS = "-c -z",chdir=src_dir)

Legend:
Removed from v.2502  
changed lines
  Added in v.2503

  ViewVC Help
Powered by ViewVC 1.1.26