diff options
author | Steven Knight <knight@baldmt.com> | 2002-02-04 04:11:08 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-02-04 04:11:08 (GMT) |
commit | c6ee835808199bcd2bebecd7e463c6fe48b1bed1 (patch) | |
tree | 119376a891c8497b53f80f47a8085475b5cd34dc /doc | |
parent | 5e8517111e036d0dfd191a8ad41e41bbf0950c2e (diff) | |
download | SCons-c6ee835808199bcd2bebecd7e463c6fe48b1bed1.zip SCons-c6ee835808199bcd2bebecd7e463c6fe48b1bed1.tar.gz SCons-c6ee835808199bcd2bebecd7e463c6fe48b1bed1.tar.bz2 |
Finally, eat our own dog food: start using SCons to build its own packages.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/SConscript | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/SConscript b/doc/SConscript index cb9df1b..c706f1f 100644 --- a/doc/SConscript +++ b/doc/SConscript @@ -53,7 +53,7 @@ jw = whereis('jw') tar_deps = [] tar_list = "" -entity_re = re.compile(r'<!entity\s+(?:%\s+)?(?:\S+)\s+SYSTEM\s+"([^"]*)">/', re.I) +entity_re = re.compile(r'<!entity\s+(?:%\s+)?(?:\S+)\s+SYSTEM\s+"([^"]*)">', re.I) format_re = re.compile(r'<(?:graphic|imagedata)\s+fileref="([^"]*)"(?:\s+format="([^"]*)")?') # @@ -67,12 +67,12 @@ format_re = re.compile(r'<(?:graphic|imagedata)\s+fileref="([^"]*)"(?:\s+format= # defined as a SYSTEM entity is, in fact, a file included # somewhere in the document. # -def scansgml(contents, argument = None): +def scansgml(node, env, argument = None): includes = [] - matches = entity_re.findall(contents) - for m in matches: - includes.append(m[0]) + contents = node.get_contents() + + includes.extend(entity_re.findall(contents)) matches = format_re.findall(contents) for m in matches: @@ -173,7 +173,7 @@ THIS IS AN AUTOMATICALLY-GENERATED FILE. DO NOT EDIT. s = docs[doc].get('scan') if s: - File(os.path.join('build', 'doc', main)).scanner_set(s) + File(main).scanner_set(s) if docs[doc].get('html'): env.Command(htmlindex, main, [ |