summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Tool/tex.py
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2014-04-26 14:32:34 (GMT)
committerGary Oberbrunner <garyo@oberbrunner.com>2014-04-26 14:32:34 (GMT)
commit320e2cdff17970f826ce6f20d64b24a1aafdbfe8 (patch)
tree94db787fe773638103405eaed40e848ee41e7509 /src/engine/SCons/Tool/tex.py
parent1a88d571ce37119d71e89dcab1d7099bc29b77ac (diff)
parentee8f9bd107e7410cc20c7e7c5d5338cbfc0d376d (diff)
downloadSCons-320e2cdff17970f826ce6f20d64b24a1aafdbfe8.zip
SCons-320e2cdff17970f826ce6f20d64b24a1aafdbfe8.tar.gz
SCons-320e2cdff17970f826ce6f20d64b24a1aafdbfe8.tar.bz2
Merged in rmanagan/scons/scons-fix-for-issue-2942 (pull request #132)
Diffstat (limited to 'src/engine/SCons/Tool/tex.py')
-rw-r--r--src/engine/SCons/Tool/tex.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/engine/SCons/Tool/tex.py b/src/engine/SCons/Tool/tex.py
index f51c7dc..4c10731 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 = []
@@ -722,7 +723,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'],
@@ -740,7 +742,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 = []