From ad361a847eeb6d023dba25c2a618ee9fc2f95774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 31 Jan 2016 20:46:01 +0100 Subject: Create Bibtex bibliography always --- debian/patches/0120-fix-bibtex-call.patch | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 debian/patches/0120-fix-bibtex-call.patch (limited to 'debian/patches/0120-fix-bibtex-call.patch') diff --git a/debian/patches/0120-fix-bibtex-call.patch b/debian/patches/0120-fix-bibtex-call.patch new file mode 100644 index 0000000..ea82ca5 --- /dev/null +++ b/debian/patches/0120-fix-bibtex-call.patch @@ -0,0 +1,40 @@ +Description: Create Bibtex bibliography always +Author: Alvaro G. M. +Bug: http://scons.tigris.org/issues/show_bug.cgi?id=2967 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749716 +Forwarded: http://scons.tigris.org/issues/show_bug.cgi?id=2967 +Last-Update: 2016-01-31 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/engine/SCons/Tool/tex.py +=================================================================== +--- trunk.orig/engine/SCons/Tool/tex.py ++++ trunk/engine/SCons/Tool/tex.py +@@ -346,6 +346,13 @@ def InternalLaTeXAuxAction(XXXLaTeXActio + if result != 0: + check_file_error_message(env['BIBTEX'], 'blg') + must_rerun_latex = True ++ if Verbose: ++ print "Need to run bibtex on ",auxfilename ++ bibfile = env.fs.File(SCons.Util.splitext(target_aux)[0]) ++ result = BibTeXAction(bibfile, bibfile, env) ++ if result != 0: ++ check_file_error_message(env['BIBTEX'], 'blg') ++ must_rerun_latex = True + + # Now decide if biber will need to be run. + # When the backend for biblatex is biber (by choice or default) the +@@ -369,6 +376,13 @@ def InternalLaTeXAuxAction(XXXLaTeXActio + if result != 0: + check_file_error_message(env['BIBER'], 'blg') + must_rerun_latex = True ++ if Verbose: ++ print "Need to run biber on ",bcffilename ++ bibfile = env.fs.File(SCons.Util.splitext(target_bcf)[0]) ++ result = BiberAction(bibfile, bibfile, env) ++ if result != 0: ++ check_file_error_message(env['BIBER'], 'blg') ++ must_rerun_latex = True + + # Now decide if latex will need to be run again due to index. + if check_MD5(suffix_nodes['.idx'],'.idx') or (count == 1 and run_makeindex): -- cgit v1.2.3