16 |
|
|
17 |
local_env=env.Copy() |
local_env=env.Copy() |
18 |
|
|
19 |
# get all the examples: |
# get all the file names in doc/examples: |
20 |
src_dir = local_env.Dir('examples').srcnode().abspath |
src_dir = local_env.Dir('examples').srcnode().abspath |
21 |
example_files=[] |
example_files = os.popen("find " + src_dir + " -name .svn -prune -o -type f -print").read().split(None) |
22 |
for x in os.listdir(src_dir): |
|
|
if not x.startswith("."): |
|
|
f = "examples/"+x |
|
|
if os.path.isdir(src_dir+'/'+f): |
|
|
example_files+=[ env.File(f+"/"+y) for y in os.listdir(src_dir+'/'+f) if not y.startswith('.')] |
|
|
else: |
|
|
example_files+=[ env.File(f) ] |
|
23 |
env.Zip(examples_zipfile, example_files) |
env.Zip(examples_zipfile, example_files) |
24 |
try: |
env.Tar(examples_tarfile, example_files) |
25 |
env.Tar(examples_tarfile, example_files) |
|
|
except AttributeError: |
|
|
pass |
|
26 |
# Call the doc build using SConscript |
# Call the doc build using SConscript |
27 |
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) |
28 |
|
|
29 |
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) |
30 |
|
local_env.SConscript(dirs = ['#/doc/doxygen'], build_dir='#/build/$PLATFORM/doc/doxygen', duplicate=1) |