summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorDirk Baechle <dl9obn@darc.de>2013-05-03 23:15:51 (GMT)
committerDirk Baechle <dl9obn@darc.de>2013-05-03 23:15:51 (GMT)
commit0947775a51fa7bdb446b40c08f417fe6ce1ebbdc (patch)
treef783e3547d18fdfb589c81aceb3d4251ecd20e2b /SConstruct
parent6885c3fd4f501aff9d5cde7b0bb3aedaf5b63e10 (diff)
downloadSCons-0947775a51fa7bdb446b40c08f417fe6ce1ebbdc.zip
SCons-0947775a51fa7bdb446b40c08f417fe6ce1ebbdc.tar.gz
SCons-0947775a51fa7bdb446b40c08f417fe6ce1ebbdc.tar.bz2
- 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 64ac9fd..8dce43b 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')