1 |
jgs |
485 |
# Scons configuration file for documentation |
2 |
cochrane |
369 |
|
3 |
elspeth |
643 |
# Copyright 2006 by ACcESS MNRF |
4 |
|
|
# |
5 |
|
|
# http://www.access.edu.au |
6 |
|
|
# Primary Business: Queensland, Australia |
7 |
|
|
# Licensed under the Open Software License version 3.0 |
8 |
|
|
# http://www.opensource.org/licenses/osl-3.0.php |
9 |
|
|
# |
10 |
cochrane |
369 |
# |
11 |
elspeth |
643 |
# |
12 |
jgs |
485 |
# set appropriate defaults for configuration variables |
13 |
cochrane |
369 |
|
14 |
gross |
707 |
import os |
15 |
|
|
Import('*') |
16 |
cochrane |
369 |
|
17 |
gross |
707 |
local_env=env.Copy() |
18 |
cochrane |
369 |
|
19 |
ksteube |
1215 |
# get all the file names in doc/examples: |
20 |
gross |
707 |
src_dir = local_env.Dir('examples').srcnode().abspath |
21 |
ksteube |
1215 |
example_files = os.popen("find " + src_dir + " -name .svn -prune -o -type f -print").read().split(None) |
22 |
|
|
|
23 |
gross |
707 |
env.Zip(examples_zipfile, example_files) |
24 |
ksteube |
1215 |
env.Tar(examples_tarfile, example_files) |
25 |
|
|
|
26 |
elspeth |
712 |
# Call the doc build using SConscript |
27 |
gross |
707 |
local_env.SConscript(dirs = ['#/doc/user'], build_dir='#/build/$PLATFORM/doc/user', duplicate=1) |
28 |
elspeth |
712 |
|
29 |
|
|
local_env.SConscript(dirs = ['#/doc/epydoc'], build_dir='#/build/$PLATFORM/doc/epydoc', duplicate=1) |
30 |
ksteube |
1215 |
local_env.SConscript(dirs = ['#/doc/doxygen'], build_dir='#/build/$PLATFORM/doc/doxygen', duplicate=1) |