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/engine/SCons/Tool | |
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/engine/SCons/Tool')
-rw-r--r-- | src/engine/SCons/Tool/tex.py | 7 |
1 files changed, 5 insertions, 2 deletions
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 = [] |