diff options
author | Dirk Baechle <dl9obn@darc.de> | 2014-03-11 23:01:57 (GMT) |
---|---|---|
committer | Dirk Baechle <dl9obn@darc.de> | 2014-03-11 23:01:57 (GMT) |
commit | 75dd267e0f5b44603e6d33b835e2007bca5fefee (patch) | |
tree | 73c30ca1b4dcfc8438ee66d8e19d9097230b444e /src/engine/SCons/Tool/docbook | |
parent | 4c5afd028828a6908b788e67516c1f4aeaec2fb2 (diff) | |
download | SCons-75dd267e0f5b44603e6d33b835e2007bca5fefee.zip SCons-75dd267e0f5b44603e6d33b835e2007bca5fefee.tar.gz SCons-75dd267e0f5b44603e6d33b835e2007bca5fefee.tar.bz2 |
- improved dependency handling for doc toolchain (no false rebuilds anymore)
- fixed EPUB builder
- corrected anchor style for links in CSS
- documents now include chapter in section numbering
Diffstat (limited to 'src/engine/SCons/Tool/docbook')
-rw-r--r-- | src/engine/SCons/Tool/docbook/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine/SCons/Tool/docbook/__init__.py b/src/engine/SCons/Tool/docbook/__init__.py index 72ea175..aacc26d 100644 --- a/src/engine/SCons/Tool/docbook/__init__.py +++ b/src/engine/SCons/Tool/docbook/__init__.py @@ -429,6 +429,11 @@ def DocbookEpub(env, target, source=None, *args, **kw): mime_file.close() zf.write(mime_file.name, compress_type = zipfile.ZIP_STORED) for s in source: + if os.path.isfile(str(s)): + head, tail = os.path.split(str(s)) + if not head: + continue + s = head for dirpath, dirnames, filenames in os.walk(str(s)): for fname in filenames: path = os.path.join(dirpath, fname) |