summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/bibtex.ch
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-10-10 22:01:41 +0000
committerKarl Berry <karl@freefriends.org>2023-10-10 22:01:41 +0000
commita0dc1ccfd20bcd453d4a31103c94c20754a0816b (patch)
treeeb2b6356a146350e90c4c8a95f5ac3d341d0632e /Build/source/texk/web2c/bibtex.ch
parent1045e3f70340d9f7540d9c9328a282ee84f88a51 (diff)
support new envvar TEXMF_OUTPUT_DIRECTORY
git-svn-id: svn://tug.org/texlive/trunk@68508 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/bibtex.ch')
-rw-r--r--Build/source/texk/web2c/bibtex.ch15
1 files changed, 12 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/bibtex.ch b/Build/source/texk/web2c/bibtex.ch
index 6c7ff64fd99..7bda21d2b1a 100644
--- a/Build/source/texk/web2c/bibtex.ch
+++ b/Build/source/texk/web2c/bibtex.ch
@@ -1055,11 +1055,20 @@ if (last_cite = max_cites) then
% Don't use a path to search for subsidiary aux files,
% but do check the directory of the main .aux file.
%
-% This last is useful, for example, when --output-dir is used and the
+% This last is useful, for example, when --output-dir is used with TeX and the
% .aux file has an \@input directive resulting from a LaTeX \include;
% see bibtex-auxinclude.test. It's necessary because BibTeX itself does
-% not have --output-directory. Maybe it would be (have been?) better to
-% add it, but seems too intrusive now? Different bbl location.
+% not have --output-directory.
+%
+% We should probably implement the --output-directory option and
+% TEXMF_OUTPUT_DIRECTORY envvar in BibTeX. What this amounts to is
+% changing the add_extension function to look for those overrides to the
+% aux file dirname, so that when we call kpse_*_name_ok below, we're
+% calling it on the actual file that will be used.
+%
+% And we need to call kpse_*_name_ok because bibtex is included in the
+% shell_escape_commands list that can be invoked by TeX in restricted mode.
+%
@x
while (name_ptr <= file_name_size) do {pad with blanks}
begin