summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorDirk Baechle <dl9obn@darc.de>2013-05-04 01:15:51 +0200
committerDirk Baechle <dl9obn@darc.de>2013-05-04 01:15:51 +0200
commit1fbefd24e5d0fb8d5ee4bc5829d57d2fe3c9a7d8 (patch)
treedb7c1f8052480a8c5cabc7bb8bc18a08314453bf /SConstruct
parent0b4c8dabb0991e9ed9255de97aef1a130b9bb903 (diff)
downloadscons-1fbefd24e5d0fb8d5ee4bc5829d57d2fe3c9a7d8.tar.gz
- relinked the build of all documentation outputs to the bootstrap process
- corrected the doc folder SConscripts and added XSL and titlepage files where required
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct14
1 files changed, 13 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 64ac9fd0..8dce43b1 100644
--- a/SConstruct
+++ b/SConstruct
@@ -168,6 +168,17 @@ if build_id is None:
python_ver = sys.version[0:3]
+#
+# Adding some paths to sys.path, this is mainly needed
+# for the doc toolchain.
+#
+addpaths = [os.path.abspath(os.path.join(os.getcwd(), 'bin')),
+ os.path.abspath(os.path.join(os.getcwd(), 'QMTest'))]
+for a in addpaths:
+ if a not in sys.path:
+ sys.path.append(a)
+
+
# Re-exporting LD_LIBRARY_PATH is necessary if the Python version was
# built with the --enable-shared option.
@@ -375,6 +386,7 @@ def SCons_revision(target, source, env):
open(t, 'wb').write(contents)
os.chmod(t, os.stat(s)[0])
+revaction = SCons_revision
revbuilder = Builder(action = Action(SCons_revision,
varlist=['COPYRIGHT', 'VERSION']))
@@ -1179,7 +1191,7 @@ for file in files:
#
# Documentation.
#
-Export('build_dir', 'env', 'whereis')
+Export('build_dir', 'env', 'whereis', 'revaction')
SConscript('doc/SConscript')