diff options
author | Robert Managan <ramanagan@att.net> | 2014-04-25 05:43:57 (GMT) |
---|---|---|
committer | Robert Managan <ramanagan@att.net> | 2014-04-25 05:43:57 (GMT) |
commit | ee8f9bd107e7410cc20c7e7c5d5338cbfc0d376d (patch) | |
tree | a07244d3daae03e2e72d4d33c007ba5795ca0bfe /src | |
parent | b5c114714edc311f750bdc2730315e905b8f4fa9 (diff) | |
download | SCons-ee8f9bd107e7410cc20c7e7c5d5338cbfc0d376d.zip SCons-ee8f9bd107e7410cc20c7e7c5d5338cbfc0d376d.tar.gz SCons-ee8f9bd107e7410cc20c7e7c5d5338cbfc0d376d.tar.bz2 |
Improve support for biblatex package. Fix a case where we did not recognize that auxiliary files would be made and hence we did not clean them
Diffstat (limited to 'src')
-rw-r--r-- | src/CHANGES.txt | 4 | ||||
-rw-r--r-- | src/engine/SCons/Tool/tex.py | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt index 73b8f0c..342fa84 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -36,6 +36,10 @@ RELEASE 2.3.2.alpha.yyyymmdd - NEW DATE WILL BE INSERTED HERE From Dirk Baechle: - Update XML doc editor configuration + From Rob Managan: + - Updated the TeX builder to correctly clean auxiliary files when + the biblatex package is used. + RELEASE 2.3.1 From Andrew Featherstone: diff --git a/src/engine/SCons/Tool/tex.py b/src/engine/SCons/Tool/tex.py index 5f24df0..e9bf694 100644 --- a/src/engine/SCons/Tool/tex.py +++ b/src/engine/SCons/Tool/tex.py @@ -102,6 +102,7 @@ makeacronyms_re = re.compile(r"^[^%\n]*\\makeglossaries", re.MULTILINE) beamer_re = re.compile(r"^[^%\n]*\\documentclass\{beamer\}", re.MULTILINE) regex = r'^[^%\n]*\\newglossary\s*\[([^\]]+)\]?\s*\{([^}]*)\}\s*\{([^}]*)\}\s*\{([^}]*)\}\s*\{([^}]*)\}' newglossary_re = re.compile(regex, re.MULTILINE) +biblatex_re = re.compile(r"^[^%\n]*\\usepackage.*\{biblatex\}", re.MULTILINE) newglossary_suffix = [] @@ -719,7 +720,8 @@ def tex_emitter_core(target, source, env, graphics_extensions): makeglossaries_re, makeacronyms_re, beamer_re, - newglossary_re ] + newglossary_re, + biblatex_re ] # set up list with the file suffixes that need emitting # when a feature is found file_tests_suff = [['.aux','aux_file'], @@ -737,7 +739,8 @@ def tex_emitter_core(target, source, env, graphics_extensions): ['.glo', '.gls', '.glg','glossaries'], ['.acn', '.acr', '.alg','acronyms'], ['.nav', '.snm', '.out', '.toc','beamer'], - ['newglossary',] ] + ['newglossary',], + ['.bcf', '.blg','biblatex'] ] # for newglossary the suffixes are added as we find the command # build the list of lists file_tests = [] |