diff options
author | Steven Knight <knight@baldmt.com> | 2010-01-15 16:45:40 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-01-15 16:45:40 (GMT) |
commit | 05704f40dbf9a88df4f6ad8edf2182c8aadf3cce (patch) | |
tree | 31c7daea41fe0f20ffb73d7f970d8b8ad29b28e2 /doc/SConscript | |
parent | 358ca1aa92dbd377ad8d9bb9cfd9f4e3097c9893 (diff) | |
download | SCons-05704f40dbf9a88df4f6ad8edf2182c8aadf3cce.zip SCons-05704f40dbf9a88df4f6ad8edf2182c8aadf3cce.tar.gz SCons-05704f40dbf9a88df4f6ad8edf2182c8aadf3cce.tar.bz2 |
Rename the sconsoutput.py script to scons-doc.py, and refactor it to
support command-line option parsing and generating output on
streams other than sys.stdout.
Diffstat (limited to 'doc/SConscript')
-rw-r--r-- | doc/SConscript | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/SConscript b/doc/SConscript index e4668fc..b8fc502 100644 --- a/doc/SConscript +++ b/doc/SConscript @@ -102,8 +102,8 @@ s = Scanner(name = 'xml', function = scanxml, skeys = ['.xml', '.mod']) orig_env = env env = orig_env.Clone(SCANNERS = [s], - SCONS_PROC_PY = File('#bin/scons-proc.py').rfile(), - SCONSOUTPUT_PY = File('#bin/sconsoutput.py').rfile()) + SCONS_DOC_PY = File('#bin/scons-doc.py').rfile(), + SCONS_PROC_PY = File('#bin/scons-proc.py').rfile()) # Fetch the list of files in the build engine that contain # SCons documentation XML for processing. @@ -231,7 +231,7 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT. 'SCons-win32-install-3.jpg', 'SCons-win32-install-4.jpg', ], - 'sconsoutput' : 1, + 'scons-doc' : 1, }, } @@ -257,7 +257,7 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT. manifest = File(os.path.join(doc, 'MANIFEST')).rstr() src_files = map(lambda x: x[:-1], open(manifest).readlines()) - build_doc = docs[doc].get('sconsoutput') and int(ARGUMENTS.get('BUILDDOC', 0)) + build_doc = docs[doc].get('scons-doc') and int(ARGUMENTS.get('BUILDDOC', 0)) for s in src_files: doc_s = os.path.join(doc, s) build_s = os.path.join(build, doc, s) @@ -268,7 +268,7 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT. if build_doc and ext == '.xml': env.Command(doc_s, base + '.in', - "$PYTHON $SCONSOUTPUT_PY $SOURCE > $TARGET") + "$PYTHON $SCONS_DOC_PY $SOURCE > $TARGET") orig_env.SCons_revision(build_s, doc_s) Local(build_s) |